/[imapfilter]/imapfilter/misc.c
ViewVC logotype

Diff of /imapfilter/misc.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by lefcha, Wed Oct 17 13:23:06 2001 UTC revision 1.2 by lefcha, Tue Nov 6 17:42:57 2001 UTC
# Line 43  char *strcasestr(const char *haystack, c Line 43  char *strcasestr(const char *haystack, c
43    
44    
45  /*  /*
46   * Convert an unsigned long int to a string.   * Convert an unsigned long integer to a string.
47   */   */
48  char *ultostr(unsigned long int num, int base)  char *ultostr(unsigned long int num, int base)
49  {  {
# Line 65  char *ultostr(unsigned long int num, int Line 65  char *ultostr(unsigned long int num, int
65              *--c = '0' + d;              *--c = '0' + d;
66          else          else
67              *--c = 'a' + d - 10;              *--c = 'a' + d - 10;
68      } while (num);      } while (c >= s && num);
69    
70      return c;      return c;
71  }  }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

webmaster@linux.gr
ViewVC Help
Powered by ViewVC 1.1.26