source: bootcd/isolinux/syslinux-6.03/gpxe/src/include/string.h @ dd1be7c

Last change on this file since dd1be7c was e16e8f2, checked in by Edwin Eefting <edwin@datux.nl>, 3 years ago

bootstuff

  • Property mode set to 100644
File size: 2.1 KB
Line 
1/*
2 *  Copyright (C) 1991, 1992  Linus Torvalds
3 *  Copyright (C) 2004 Tobias Lorenz
4 *
5 *  string handling functions
6 *  based on linux/include/linux/ctype.h
7 *       and linux/include/linux/string.h
8 *
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License version 2 as
11 * published by the Free Software Foundation.
12 */
13
14FILE_LICENCE ( GPL2_ONLY );
15
16#ifndef ETHERBOOT_STRING_H
17#define ETHERBOOT_STRING_H
18
19#include <stddef.h>
20#include <bits/string.h>
21
22int __pure strnicmp(const char *s1, const char *s2, size_t len) __nonnull;
23char * strcpy(char * dest,const char *src) __nonnull;
24char * strncpy(char * dest,const char *src,size_t count) __nonnull;
25char * strcat(char * dest, const char * src) __nonnull;
26char * strncat(char *dest, const char *src, size_t count) __nonnull;
27int __pure strcmp(const char * cs,const char * ct) __nonnull;
28int __pure strncmp(const char * cs,const char * ct,
29                                     size_t count) __nonnull;
30char * __pure strchr(const char * s, int c) __nonnull;
31char * __pure strrchr(const char * s, int c) __nonnull;
32size_t __pure strlen(const char * s) __nonnull;
33size_t __pure strnlen(const char * s, size_t count) __nonnull;
34size_t __pure strspn(const char *s, const char *accept) __nonnull;
35size_t __pure strcspn(const char *s, const char *reject) __nonnull;
36char * __pure strpbrk(const char * cs,const char * ct) __nonnull;
37char * strtok(char * s,const char * ct) __nonnull;
38char * strsep(char **s, const char *ct) __nonnull;
39void * memset(void * s,int c,size_t count) __nonnull;
40void * memmove(void * dest,const void *src,size_t count) __nonnull;
41int __pure memcmp(const void * cs,const void * ct,
42                                    size_t count) __nonnull;
43void * __pure memscan(const void * addr, int c, size_t size) __nonnull;
44char * __pure strstr(const char * s1,const char * s2) __nonnull;
45void * __pure memchr(const void *s, int c, size_t n) __nonnull;
46char * __malloc strdup(const char *s) __nonnull;
47char * __malloc strndup(const char *s, size_t n) __nonnull;
48
49extern const char * __pure strerror ( int errno );
50
51#endif /* ETHERBOOT_STRING */
Note: See TracBrowser for help on using the repository browser.