所属分类:
其他
开发工具:Visual C++
文件大小:2KB
下载次数:1
上传日期:2006-05-10 17:41:31
说明: * Function:
* 1. Replace the first oldstr with newstr in srcstr
* Arguments:
* IN :
* srcstr
* oldstr
* newstr
* OUT :
* srcstr
* Return:
* 1. If find and replace one oldstr with newstr in srcstr , return 1
* 2. If find no oldstr in srcstr , return 0
* 3. If error (malloc return NULL) return -1
* Notes:
* 1. srcstr should be large size enough.
(* Function :* 1. Replace the first oldstr with newstr in srcs tr* Arguments :* IN : srcstr oldstr**** newstr OUT :* srcstr* Return :* 1. If find and replace one with newstr in oldstr srcstr, return 1* 2. If find no oldstr in srcstr. return 0* 3. If error (malloc return NULL) RETUR n-1* Notes :* 1. srcstr size should be large enough.)