/[grub]/grub2/kern/misc.c
ViewVC logotype

Diff of /grub2/kern/misc.c

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

revision 1.15 by okuji, Tue Sep 14 08:56:51 2004 UTC revision 1.16 by marco_g, Mon Nov 1 16:14:16 2004 UTC
# Line 100  grub_strcat (char *dest, const char *src Line 100  grub_strcat (char *dest, const char *src
100    return dest;    return dest;
101  }  }
102    
103    char *
104    grub_strncat (char *dest, const char *src, int c)
105    {
106      char *p = dest;
107    
108      while (*p)
109        p++;
110    
111      while ((*p++ = *src++) != '\0' && --c)
112        ;
113      *(--p) = '\0';
114      
115      return dest;
116    }
117    
118  int  int
119  grub_printf (const char *fmt, ...)  grub_printf (const char *fmt, ...)
120  {  {

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26