예제 #1
0
void Console_PutChar(u8 c)
{
#ifdef WIN32
     Win_PutChar(c);
#else
      OS_PutChar(c);
#endif
}
예제 #2
0
파일: ghttpCommon.c 프로젝트: 2asoft/xray
void ghiLogToFile(const char * buffer, int len, const char* fileName)
{
#ifdef _NITRO
	int i;

	if(!buffer || !len)
		return;

	for(i = 0 ; i < len ; i++)
		OS_PutChar(buffer[i]);
#else
	FILE * file;

	if(!buffer || !len)
		return;

	file = fopen(fileName, "ab");
	if(file)
	{
		fwrite(buffer, 1, len, file);
		fclose(file);
	}
#endif
}