2013年8月28日

Makefile所有内嵌函数

摘要: 一、文本处理函数以下是GNUmake内嵌的文本(字符串)处理函数。1$(substFROM,TO,TEXT)函数名称:字符串替换函数—subst。函数功能:把字串“TEXT”中的“FROM”字符替换为“TO”。返回值:替换后的新字符串。示例:$(substee,EE,feetonthestreet)替换“feetonthestreet”中的“ee”为“EE”,结果得到字符串“fEEtonthestrEEt”。2$(patsubstPATTERN,REPLACEMENT,TEXT)函数名称:模式替换函数—patsubst。函数功能:搜索“TEXT”中以空格分开的单词,将否符合模式“TATTERN 阅读全文

posted @ 2013-08-28 14:52 凌峰布衣 阅读(7431) 评论(1) 推荐(1) 编辑

所有时间测试函数

摘要: /**timeTest.c**Createdon:Aug28,2013*Author:zsf*/#include#include#include#includeintmain(intargc,char*argv[]){#if0//获取时间{//取得S级的时间time_ttime_s=0;structtm*nowtm=NULL;charbuf[64]={0};chartmbuf[64]={0};if(-1==time(&time_s)){perror("timeerror");//获取当前时间}printf("timeis[%d]\n",(int) 阅读全文

posted @ 2013-08-28 14:46 凌峰布衣 阅读(497) 评论(0) 推荐(0) 编辑

导航