comparison th_string.c @ 443:1d2d214ac433

Rename functions th_pstrcat() and th_pstrcpy() to th_pstr_cat() and th_pstr_cpy() to be more consistent with th_pstr_*printf()
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 19 Oct 2017 17:17:09 +0300
parents 1b3472ba7b23
children eb78997a7574
comparison
equal deleted inserted replaced
442:54081d784d75 443:1d2d214ac433
841 } 841 }
842 842
843 843
844 /* Copy a given string over in *pdst. 844 /* Copy a given string over in *pdst.
845 */ 845 */
846 int th_pstrcpy(char **pdst, const char *src) 846 int th_pstr_cpy(char **pdst, const char *src)
847 { 847 {
848 assert(pdst != NULL); 848 assert(pdst != NULL);
849 849
850 if (src == NULL) 850 if (src == NULL)
851 return -1; 851 return -1;
859 } 859 }
860 860
861 861
862 /* Concatenates a given string into string pointed by *pdst. 862 /* Concatenates a given string into string pointed by *pdst.
863 */ 863 */
864 int th_pstrcat(char **pdst, const char *src) 864 int th_pstr_cat(char **pdst, const char *src)
865 { 865 {
866 assert(pdst != NULL); 866 assert(pdst != NULL);
867 867
868 if (src == NULL) 868 if (src == NULL)
869 return -1; 869 return -1;