Standard C-string manipulation.
Compares the null terminated strings str1 and str2 to each other.
The first C string to compare
The second C string to compare
The difference of the first differing pair of bytes or 0 if the strings are identical
Compares the null terminated strings str1 and str2 to each other for up to n bytes.
Comparison ends when a null is read or when n bytes are read, whichever happens first.
The first C string to compare
The second C string to compare
The maximum number of bytes to compare
The difference of the first differing pair of bytes or the final pair of bytes read or 0 if the portions of the strings read are identical
Copies the string in src into dest and null terminates dest.
There should be no overlap of dest and src in memory.
The destination buffer with enough space for src
The source C string
The destination buffer dest
Copies up to n bytes from the string in src into dest and null terminates dest.
If dest is null terminated before n bytes have been written, null bytes will continue to be written until n bytes total were written. There should be no overlap of dest and src in memory.
The destination buffer with enough space for n bytes
The source string
The number of bytes to copy
The destination buffer dest
Concatenates the string in src to the end of the string pointed by dest and null terminates dest.
There should be no overlap of dest and src.
The destination buffer with enough space for src beyond the null character
The source C string
The destination buffer dest
Concatenates up to n bytes from the string in src to the end of the string pointed by dest and null terminates dest.
There should be no overlap of dest and src in memeory.
The destination buffer with enough space for src beyond the null character
The source string
The maximum number of bytes to copy
The destination buffer dest
Calculates the length of a null terminated string.
The C string.
The length of the C string str.
Do you have questions about the Pebble SDK?
Do you need some help understanding something on this page?
You can either take advantage of our awesome developer community and check out the SDK Help forums, or you can send us a message through the website!