Initial cut of the open ath9k htc firmware.
[open-ath9k-htc-firmware.git] / target_firmware / magpie_fw_dev / build / magpie_1_1 / sboot / cmnos / string / src / cmnos_string.c
1 #include "athos_api.h"
2
3 /* Common string functions, provided by toolchain libraries. */
4
5 extern char *strcpy(char *s1, const char *s2);
6 extern char *strncpy(char *s1, const char *s2, unsigned int n);
7 extern int   strcmp(const char *s1, const char *s2);
8 extern int   strncmp(const char *s1, const char *s2, unsigned int n);
9 extern int   strlen(const char *s);
10
11 LOCAL void
12 cmnos_string_init(void)
13 {
14 }
15
16 void
17 cmnos_string_module_install(struct string_api *tbl)
18 {
19     tbl->_string_init           = cmnos_string_init;
20     tbl->_strcpy                = strcpy;
21     tbl->_strncpy               = strncpy;
22     tbl->_strlen                = strlen;
23     tbl->_strcmp                = strcmp;
24     tbl->_strncmp               = strncmp;
25 }