337e62ff3c790ae48415b14004f23a606c578a9a
[deliverable/linux.git] / drivers / staging / wilc1000 / wilc_strutils.c
1
2 #define _CRT_SECURE_NO_DEPRECATE
3
4 #include "wilc_strutils.h"
5
6
7
8
9 /*!
10 * @author syounan
11 * @date 18 Aug 2010
12 * @version 1.0
13 */
14 void WILC_memcpy_INTERNAL(void *pvTarget, const void *pvSource, u32 u32Count)
15 {
16 memcpy(pvTarget, pvSource, u32Count);
17 }
18
19
20
21 s32 WILC_strncmp(const char *pcStr1, const char *pcStr2,
22 u32 u32Count)
23 {
24 s32 s32Result;
25
26 if (pcStr1 == NULL && pcStr2 == NULL) {
27 s32Result = 0;
28 } else if (pcStr1 == NULL) {
29 s32Result = -1;
30 } else if (pcStr2 == NULL) {
31 s32Result = 1;
32 } else {
33 s32Result = strncmp(pcStr1, pcStr2, u32Count);
34 if (s32Result < 0)
35 s32Result = -1;
36 else if (s32Result > 0)
37 s32Result = 1;
38 }
39
40 return s32Result;
41 }
42
This page took 0.031487 seconds and 4 git commands to generate.