mirror of
https://github.com/opentx/opentx.git
synced 2025-07-16 12:55:12 +03:00
Cosmetics
This commit is contained in:
parent
231499e191
commit
c9e9087ec9
1 changed files with 2 additions and 2 deletions
|
@ -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]);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue