TrimLeft C语言实现

来源:互联网 发布:淘宝裹胸 编辑:程序博客网 时间:2024/05/16 18:31



/* delete space in the string */
ContentTrimLeft( 
char*   pDest,   const   char*   pSrc, int iSrcLen )
{
    
int  i=0;
    
const char * t = pSrc;  
    
while( i<
iSrcLen && (*(t++== ' ')  );  
    strcpy(pDest,   t-1);  
}
原创粉丝点击