Diff for libplaton/platon/str/strdyn.c between version 1.2 and 1.3
| version 1.2, 2001/10/10 13:21:02 |
version 1.3, 2001/10/10 13:26:52 |
|
|
| #include <stdlib.h> |
#include <stdlib.h> |
| #include <stdarg.h> |
#include <stdarg.h> |
| |
|
| |
#include "strplus.h" |
| #include "strdyn.h" |
#include "strdyn.h" |
| |
|
| #ifndef __strcnt |
|
| #define __strcnt |
|
| |
|
| int strcnt(char *s, char c) { |
|
| register int i = 0; |
|
| |
|
| if (s != NULL) |
|
| while (*s != '\0') |
|
| if (*s++ == c) |
|
| i++; |
|
| |
|
| return i; |
|
| } |
|
| |
|
| #endif |
|
| |
|
| char **strdyn_create(void) { |
char **strdyn_create(void) { |
| register char **ar; |
register char **ar; |
| |
|
Platon Group <platon@platon.org> http://platon.org/
|
|