Mercurial > projects > ldc
comparison druntime/import/core/stdc/string.d @ 1458:e0b2d67cfe7c
Added druntime (this should be removed once it works).
author | Robert Clipsham <robert@octarineparrot.com> |
---|---|
date | Tue, 02 Jun 2009 17:43:06 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
1456:7b218ec1044f | 1458:e0b2d67cfe7c |
---|---|
1 /** | |
2 * D header file for C99. | |
3 * | |
4 * Copyright: Copyright Sean Kelly 2005 - 2009. | |
5 * License: <a href="http://www.boost.org/LICENSE_1_0.txt>Boost License 1.0</a>. | |
6 * Authors: Sean Kelly | |
7 * Standards: ISO/IEC 9899:1999 (E) | |
8 * | |
9 * Copyright Sean Kelly 2005 - 2009. | |
10 * Distributed under the Boost Software License, Version 1.0. | |
11 * (See accompanying file LICENSE_1_0.txt or copy at | |
12 * http://www.boost.org/LICENSE_1_0.txt) | |
13 */ | |
14 module core.stdc.string; | |
15 | |
16 private import core.stdc.stddef; // for size_t | |
17 | |
18 extern (C): | |
19 | |
20 void* memchr(in void* s, int c, size_t n); | |
21 int memcmp(in void* s1, in void* s2, size_t n); | |
22 void* memcpy(void* s1, in void* s2, size_t n); | |
23 void* memmove(void* s1, in void* s2, size_t n); | |
24 void* memset(void* s, int c, size_t n); | |
25 | |
26 char* strcpy(char* s1, in char* s2); | |
27 char* strncpy(char* s1, in char* s2, size_t n); | |
28 char* strcat(char* s1, in char* s2); | |
29 char* strncat(char* s1, in char* s2, size_t n); | |
30 int strcmp(in char* s1, in char* s2); | |
31 int strcoll(in char* s1, in char* s2); | |
32 int strncmp(in char* s1, in char* s2, size_t n); | |
33 size_t strxfrm(char* s1, in char* s2, size_t n); | |
34 char* strchr(in char* s, int c); | |
35 size_t strcspn(in char* s1, in char* s2); | |
36 char* strpbrk(in char* s1, in char* s2); | |
37 char* strrchr(in char* s, int c); | |
38 size_t strspn(in char* s1, in char* s2); | |
39 char* strstr(in char* s1, in char* s2); | |
40 char* strtok(char* s1, in char* s2); | |
41 char* strerror(int errnum); | |
42 size_t strlen(in char* s); |