A
download geekinfo_c_test.c
Language: C
Copyright: Copyright 2007 Xo W.
LOC: 13
Project Info
geekinfo - Cross-platform system information tool(geekinfo)
Server: Google
Type: svn
Google\g\geekinfo\trunk\
   basesystem.cpp
   basesystem.h
   cpucount.cpp
   cpucount.h
   cpucount_asm.asm
   cpucount_asm.h
   geekinfo.cpp
   geekinfo.h
   geekinfo_c.cpp
   geekinfo_c.h
   geekinfo_c_test.c
   linuxsystem.cpp
   linuxsystem.h
   macosxsystem.cpp
   macosxsystem.h
   Makefile.win32
   Makefile_c.win32
   model.cpp
   model.h
   model.py
   platform.h
   solarissystem.cpp
   solarissystem.h
   system.cpp
   system.h
   types.h
   win32system.cpp
   win32system.h
   wmi.cpp
   wmi.h

/*
	geekinfo_c_test.c

    Copyright 2007 Xo W.
    
    Test for Geekinfo in C, analogous to geekinfo.cpp

    Free to use as anyone likes...
*/

#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "geekinfo_c.h"

int main()
{
    int i = ( int )kSystemMetricPlatform;
	for( ; i != kSystemMetricCount; i++ ) {
		printf("%s: %s\n", systemMetricName_C( ( SystemMetricType )i ), systemMetric_C( ( SystemMetricType )i ));
	}
	puts("");
    
	return 0;
}

About Koders | Resources | Downloads | Support | Black Duck | Terms of Service | DMCA | Privacy Policy | Contact Us