首页 > 代码库 > linux\unix系统下的字符操作

linux\unix系统下的字符操作

sscanf字符拆分:

sscanf(strTmpName,"%4s_%12s_%4s%2s%2s_%2s%2s_%5s_%c",SatID,strWord,cy,cm,cd,
           ch,cn,wordTime,&wordFlag);

sprintf字符拼接:

 sprintf(cBCALDataFileName,"%4s%2s%2s",cy,cm,cd); 

linux\unix系统下的字符操作