projects
/
fw
/
pdclib
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merged PDPCLIB and Therx code.
[fw/pdclib]
/
functions
/
string
/
strchr.c
diff --git
a/functions/string/strchr.c
b/functions/string/strchr.c
index fb169049e22171e7f7fb9200c44fdf3ebbe653ef..dcfc025e8cd4bec4ed62e9c548710914b2ae7929 100644
(file)
--- a/
functions/string/strchr.c
+++ b/
functions/string/strchr.c
@@
-15,3
+15,14
@@
char * strchr( char * s, int c ) { /* TODO */ };
// Standard C
char * strchr( const char * s, int c ) { /* TODO */ };
+
+/* PDPC code - unreviewed
+{
+ while (*s != '\0')
+ {
+ if (*s == (char)c) return ((char *)s);
+ s++;
+ }
+ return (NULL);
+}
+*/