diff options
| author | Klaatu <[email protected]> | 2015-05-17 15:33:21 +1200 |
|---|---|---|
| committer | Klaatu <[email protected]> | 2015-05-17 15:33:21 +1200 |
| commit | b0de699679e8f1e39af847ed172d1ba605b4370c (patch) | |
| tree | 01dac00471d61f727394e508c613b29cff0ceae5 /djb/str_copy.c | |
bulk upload of source
Diffstat (limited to 'djb/str_copy.c')
| -rw-r--r-- | djb/str_copy.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/djb/str_copy.c b/djb/str_copy.c new file mode 100644 index 0000000..90d2da6 --- /dev/null +++ b/djb/str_copy.c @@ -0,0 +1,5 @@ +unsigned int str_copy(char *out,const char *in) /*EXTRACT_INCL*/ { + unsigned int len=0; + while ((out[len]=in[len])) len++; + return len; +} |
