git.ucc.asn.au
/
tpg
/
acess2.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Adding usermode tree
[tpg/acess2.git]
/
Usermode
/
Libraries
/
ld-acess.so_src
/
lib.c
1
/*
\r
2
AcessOS 1
\r
3
Dynamic Loader
\r
4
By thePowersGang
\r
5
*/
\r
6
#include "common.h"
\r
7
\r
8
// === CODE ===
\r
9
void strcpy(char *dest, char *src)
\r
10
{
\r
11
while(*src) {
\r
12
*dest = *src;
\r
13
src ++; dest ++;
\r
14
}
\r
15
*dest = '\0';
\r
16
}
17
18
int strcmp(char *s1, char *s2)
19
{
20
while(*s1 == *s2 && *s1 != 0) s1++,s2++;
21
return *s1-*s2;
22
}
\r
23
\r
24
int strlen(char *str)
\r
25
{
\r
26
int len = 0;
\r
27
while(*str) len++,str++;
\r
28
return len;
\r
29
}
30
UCC
git Repository :: git.ucc.asn.au