ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/src/irc_string.c
(Generate patch)

Comparing ircd-hybrid-7.2/src/irc_string.c (file contents):
Revision 176 by michael, Sat Oct 22 00:00:13 2005 UTC vs.
Revision 593 by michael, Fri May 12 05:47:32 2006 UTC

# Line 44 | Line 44
44   #endif
45  
46  
47 char *
48 xstrldup(const char *s, size_t n)
49 {
50  size_t len = strlen(s) + 1;
51  char *p = NULL;
52
53  if (len > n)
54    len = n;
55  return strlcpy((p = malloc(len)), s, len), p;
56 }
57
47   /*
48   * myctime - This is like standard ctime()-function, but it zaps away
49   *   the newline from the end of that string. Also, it takes

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines