summaryrefslogtreecommitdiff
path: root/util/alternatives/lib.c
blob: 4b7a9ed5b258cf95b24da155e14fe3def554f7d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/**
** @file	lib.c
**
** @author	Numerous CSCI-452 classes
**
** @brief	C implementations of common library functions
**
** These are callable from either kernel or user code. Care should be taken
** that user code is linked against these separately from kernel code, to
** ensure separation of the address spaces.
**
** This file exists to pull them all in as a single object file.
*/

#include <common.h>

#include <lib.h>

/*
**********************************************
** MEMORY MANIPULATION FUNCTIONS
**********************************************
*/

#include "common/memset.c"
#include "common/memclr.c"
#include "common/memcpy.c"

/*
**********************************************
** STRING MANIPULATION FUNCTIONS
**********************************************
*/

#include "common/str2int.c"
#include "common/strlen.c"
#include "common/strcmp.c"
#include "common/strcpy.c"
#include "common/strcat.c"
#include "common/pad.c"
#include "common/padstr.c"
#include "common/sprint.c"

/*
**********************************************
** CONVERSION FUNCTIONS
**********************************************
*/

#include "common/cvtuns0.c"
#include "common/cvtuns.c"
#include "common/cvtdec0.c"
#include "common/cvtdec.c"
#include "common/cvthex.c"
#include "common/cvtoct.c"
#include "common/bound.c"