void * memset ( void * ptr, int value, size_t num );
Fill block of memory
pabeni 發表在 痞客邦 留言(0) 人氣(23)
time.h 的函數 mktime() 以指向結構 tm 的指標當作參數,
回傳此 tm 所表示的日曆時間。
#include <stdio.h>
pabeni 發表在 痞客邦 留言(0) 人氣(15)
localtime函式取得當地目前的日期和時間,當然存量內容(scalar context)的方式來處理時,localtime會以字串的型式傳回目前的時間和日期。
print scalar localtime, "\n";
localtime函式時間的值是一個從1970年1月1日至今以秒計算的整數值。如果你不提供一個時間值給localtime函式,它會呼叫perl的time函式。
pabeni 發表在 痞客邦 留言(0) 人氣(6)
time.h 的函數 asctime() 將結構 tm 中所表示的時間格式轉換成字串,
因此以指向結構 tm 的指標當作參數,回傳表示此時間格式的字串。
#include <stdio.h>
#include <time.h>
pabeni 發表在 痞客邦 留言(0) 人氣(18)
time.h 的函數 time() 回傳日曆時間,也就是自 1970 年 1 月 1 日後經過的總秒數。
#include <stdio.h>
#include <time.h>
pabeni 發表在 痞客邦 留言(0) 人氣(4)
string.h 的函數 memset() 將某一記憶體區段的前 n 個字元全部設定為某一字元。
#include <stdio.h>
pabeni 發表在 痞客邦 留言(0) 人氣(5)
#include <stdio.h>
FILE *popen(const char *command, const char *type);
pabeni 發表在 痞客邦 留言(0) 人氣(230)
If people do not believe that mathematics is simple,
it is only because they do not realize how complicated life is.
John von Neumann
=====================
如果人們覺得數學不簡單
那是他們並沒有了解到人生多複雜
pabeni 發表在 痞客邦 留言(0) 人氣(6)
哭的時候沒人哄,於是學會了堅強;
怕的時候沒人陪,於是學會了勇敢;
煩的時候沒人問,於是學會了承受;
pabeni 發表在 痞客邦 留言(0) 人氣(13)
小玲想當奶奶的腳,走生命的長路...
中信慈善基金會的廣告,讓我聲音都哽咽了...
社會有很多心酸又未知的角落,有著令人心疼的孩子。
pabeni 發表在 痞客邦 留言(0) 人氣(8)