1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-16 12:55:12 +03:00

Cosmetics

This commit is contained in:
Bertrand Songis 2016-05-25 13:48:10 +02:00
parent 231499e191
commit c9e9087ec9

View file

@ -60,7 +60,7 @@ int8_t char2idx(char c)
return 0; return 0;
} }
void str2zchar(char * dest, const char *src, int size) void str2zchar(char * dest, const char * src, int size)
{ {
memset(dest, 0, size); memset(dest, 0, size);
for (int c=0; c<size && src[c]; c++) { for (int c=0; c<size && src[c]; c++) {
@ -68,7 +68,7 @@ void str2zchar(char * dest, const char *src, int size)
} }
} }
int zchar2str(char * dest, const char *src, int size) int zchar2str(char * dest, const char * src, int size)
{ {
for (int c=0; c<size; c++) { for (int c=0; c<size; c++) {
dest[c] = idx2char(src[c]); dest[c] = idx2char(src[c]);