Changes to qemacs/cutils.h

Charlie Gordon <[email protected]> Tue, 10 May 2005 14:53:05 -0400
Newsgroups gmane.editors.qemacs.devel
Message-ID <[email protected]>
Index: qemacs/cutils.h
diff -u qemacs/cutils.h:1.2 qemacs/cutils.h:1.3
--- qemacs/cutils.h:1.2	Thu May  5 11:10:26 2005
+++ qemacs/cutils.h	Tue May 10 18:53:04 2005
@@ -7,6 +7,7 @@
 int stristart(const char *str, const char *val, const char **ptr);
 void pstrcpy(char *buf, int buf_size, const char *str);
 char *pstrcat(char *buf, int buf_size, const char *s);
+char *pstrncpy(char *buf, int buf_size, const char *s, int len);
 
 /* simple dynamic strings wrappers. The strings are always terminated
    by zero except if they are empty. */
@@ -76,7 +77,7 @@
 
 #define list_for_each_safe(elem, elem1, head) \
    for (elem = (void *)(head)->next, elem1 = elem->next; elem != (void *)(head); \
-		elem = elem1, elem1 = elem->next)
+                elem = elem1, elem1 = elem->next)
 
 #define list_for_each_prev(elem, head) \
    for (elem = (void *)(head)->prev; elem != (void *)(head); elem = elem->prev)