Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=cfpm.git;a=commitdiff;h=6d739c618a7f396c141bee40c75e3e682305b848

commit 6d739c618a7f396c141bee40c75e3e682305b848
Author: James Buren <r...@frugalware.org>
Date:   Fri Oct 30 01:19:32 2009 -0500

Utility.c
* add new function

diff --git a/src/Utility.c b/src/Utility.c
index 40bb875..15feb8c 100644
--- a/src/Utility.c
+++ b/src/Utility.c
@@ -77,4 +77,20 @@ char *xstrndup(const char *str,size_t num) {
return dup;
}
//[cf]
+//[of]:xstrcmb
+char *xstrcmb(const char *src1,const char *src2) {
+  size_t len;
+  char *dest;
+
+  assert((src1 != NULL) and (src2 != NULL));
+
+  len = strlen(src1) + strlen(src2);
+
+  dest = xalloc(char,len+1);
+
+  strcpy(stpcpy(dest,src1),src2);
+
+  return dest;
+}
+//[cf]
//[cf]
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to