天天看點

fputs函數

/***********************************************
 *功能:将s緩存區的字元串輸入到檔案流中
 *參數: 
 *			@s 
 *			@stream
 *傳回值:
 *			成功傳回一個非負數
 *			失敗傳回EOF
 **********************************************/			
 int fputs(const char *s, FILE *stream);

           
#include <stdio.h>

int main(int argc, const char *argv[])
{
    char s[128] = "this is a fputs test demo!";
    fputs(s,stdout);
    
	return 0;
}


           

測試結果

fputs函數

繼續閱讀