davide carboni / Mbed 2 deprecated pymite_http_get

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

sli.c File Reference

sli.c File Reference

Standard Library Interface. More...

Go to the source code of this file.

Functions

void * sli_memcpy (unsigned char *to, unsigned char const *from, unsigned int n)
 Copies a block of memory in RAM.
int sli_strlen (char const *s)
 Obtain string length.
int sli_strcmp (char const *s1, char const *s2)
 Compares two strings.
int sli_strncmp (char const *s1, char const *s2, unsigned int n)
 Compare strings for a specific length.
void sli_memset (unsigned char *dest, char const val, unsigned int n)
 Copy a value repeatedly into a block of memory.

Detailed Description

Standard Library Interface.

PyMite requires a few functions from a few different standard C libraries (memory, string, etc).

Definition in file sli.c.


Function Documentation

void* sli_memcpy ( unsigned char *  to,
unsigned char const *  from,
unsigned int  n 
)

Copies a block of memory in RAM.

Parameters:
toThe destination address.
fromThe source address.
nThe number of bytes to copy.
Returns:
The initial pointer value of the destination
See also:
mem_copy

Definition at line 39 of file sli.c.

void sli_memset ( unsigned char *  dest,
const char  val,
unsigned int  n 
)

Copy a value repeatedly into a block of memory.

Parameters:
destthe destination address.
valthe value.
nthe number of bytes to copy.
Returns:
Nothing
See also:
memset

Definition at line 142 of file sli.c.

int sli_strcmp ( char const *  s1,
char const *  s2 
)

Compares two strings.

Parameters:
s1Ptr to string 1.
s2Ptr to string 2.
Returns:
value that is less then, equal to or greater than 0 depending on whether s1's encoding is less than, equal to, or greater than s2's.

Definition at line 98 of file sli.c.

int sli_strlen ( char const *  s )

Obtain string length.

Parameters:
sptr to string.
Returns:
number of bytes in string.

Definition at line 84 of file sli.c.

int sli_strncmp ( char const *  s1,
char const *  s2,
unsigned int  n 
)

Compare strings for a specific length.

Parameters:
s1ptr to string 1.
s2ptr to string 2.
nnumber of chars to compare
Returns:
value that is less then, equal to or greater than 0 depending on whether s1's encoding is less than, equal to, or greater than s2's.

Definition at line 113 of file sli.c.