作者在 2010-07-16 23:53:32 发布以下内容
#include <stdio.h>
#include <io.h>
int main( int ac, char **av )
{
char str[] = "hello world.\n";
//write( (int)stdout, str, strlen(str));
write( 1, str, strlen(str));
return 0;
}
puts(buffer)与write( 1, buffer, strlen(buffer)) 具有等效的功能。
#include <io.h>
int main( int ac, char **av )
{
char str[] = "hello world.\n";
//write( (int)stdout, str, strlen(str));
write( 1, str, strlen(str));
return 0;
}