strutil.h 675 B

123456789101112131415161718192021
  1. #ifndef _STR_UTIL_
  2. #define _STR_UTIL_
  3. #include <stdio.h>
  4. #include <stdlib.h>
  5. #include <string.h>
  6. #ifndef RVC_DATALEN
  7. #define RVC_DATALEN 126
  8. #endif
  9. #define proxy_copy(pDst, pSrc) if(pSrc) { memcpy(pDst, pSrc, strlen(pSrc)); }
  10. int reset_buffer(void* pbuf, int idata, size_t ulen);
  11. int rend_string(char* pSrc, int iflag);
  12. int fifter_string(char*pbuf, size_t usize, const char* psrc, const char cflag);
  13. int get_interger_netaddr(char *strbuf, size_t ubufszie, const char* szip);
  14. int convert_interaddr_strip(char *strbuf, size_t ubufszie, const char* szinter_ip);
  15. int connect_strings(char* strbuf, size_t ulen, const char* psrca, const char* psrcb, const char* pstr);
  16. #endif