嵌入式系统与单片机|技术阅读
登录|注册

您现在的位置是:嵌入式系统与单片机 > 资源下载 > 其他 > * Function: * 1. Replace the first oldstr with newstr in srcstr * Arguments: * IN : * srcst

* Function: * 1. Replace the first oldstr with newstr in srcstr * Arguments: * IN : * srcst

  • 资源大小:3 K
  • 上传时间: 2024-07-12
  • 上传用户:crazyhertz007
  • 资源积分:2 下载积分
  • 标      签: Arguments Function Replace oldstr

资 源 简 介

* 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.

相 关 资 源