www.pudn.com > mypro-telnet.rar > online.c, change:2010-07-16,size:374b


#include <stdio.h> 
#include <stdlib.h> 
#include <string.h> 
#include <strings.h> 
 
int main(int argc, char* argv[]) 
{ 
	unsigned char actReg = 1; 
	FILE *fp = NULL; 
	if ((fp=fopen("/tmp/actReg.bin","wb")) == NULL) 
	{ 
		printf("Error:Can't open the file /tmp/actReg.bin!\n"); 
	} 
	else 
	{	 
		fwrite(&actReg, 1, sizeof(char), fp); 
		fclose(fp); 
	} 
	return 0; 
}