/[gnats]/gnats/libiberty/strncmp.c
ViewVC logotype

Diff of /gnats/libiberty/strncmp.c

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

revision 1.1 by pdm, Mon Dec 10 23:03:26 2001 UTC revision 1.2 by chewie, Sat Nov 13 05:14:17 2004 UTC
# Line 1  Line 1 
1  /* strncmp -- compare two strings, stop after n bytes.  /* strncmp -- compare two strings, stop after n bytes.
2     This function is in the public domain.  */     This function is in the public domain.  */
3    
4    /*
5    
6    @deftypefn Supplemental int strncmp (const char *@var{s1}, const char *@var{s2}, size_t @var{n})
7    
8    Compares the first @var{n} bytes of two strings, returning a value as
9    @code{strcmp}.
10    
11    @end deftypefn
12    
13    */
14    
15  #include <ansidecl.h>  #include <ansidecl.h>
16  #ifdef __STDC__  #ifdef ANSI_PROTOTYPES
17  #include <stddef.h>  #include <stddef.h>
18  #else  #else
19  #define size_t unsigned long  #define size_t unsigned long

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

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