version 1.3, 2025/03/09 19:50:47
|
version 1.4, 2025/04/09 19:52:02
|
Line 24
|
Line 24
|
* along with FreeM. If not, see <https://www.gnu.org/licenses/>. |
* along with FreeM. If not, see <https://www.gnu.org/licenses/>. |
* |
* |
* $Log$ |
* $Log$ |
|
* Revision 1.4 2025/04/09 19:52:02 snw |
|
* Eliminate as many warnings as possible while building with -Wall |
|
* |
* Revision 1.3 2025/03/09 19:50:47 snw |
* Revision 1.3 2025/03/09 19:50:47 snw |
* Second phase of REUSE compliance and header reformat |
* Second phase of REUSE compliance and header reformat |
* |
* |
Line 57 long int stnlen (const char *source, siz
|
Line 60 long int stnlen (const char *source, siz
|
return length; |
return length; |
} |
} |
|
|
|
|
/* copy string from 'source' to 'dest' */ |
/* copy string from 'source' to 'dest' */ |
long int stcpy (char *dest, const char *source) |
long int stcpy (char *dest, const char *source) |
{ |
{ |
Line 118 short int stcat (char *dest, const char
|
Line 120 short int stcat (char *dest, const char
|
return TRUE; |
return TRUE; |
} |
} |
|
|
long int stncat (char *dest, const char *source, size_t siz) |
|
{ |
|
long int srclen; |
|
long int dstlen; |
|
|
|
srclen = stnlen (source, siz); |
|
dstlen = stnlen (dest, siz); |
|
|
|
|
|
return 0; |
|
} |
|
|
|
/* compare str1 and str2 */ |
/* compare str1 and str2 */ |
short int stcmp (char *str1, char *str2) |
short int stcmp (char *str1, char *str2) |
{ |
{ |
Line 225 void stncnv_c2m(char *cstr, size_t siz)
|
Line 215 void stncnv_c2m(char *cstr, size_t siz)
|
|
|
return; |
return; |
} |
} |
|
|
/* convert at most 'count' characters of *key into human-readable format in *buf */ |
/* convert at most 'count' characters of *key into human-readable format in *buf */ |
size_t key_to_name(char *buf, const char *key, size_t count) |
size_t key_to_name(char *buf, const char *key, size_t count) |
{ |
{ |
Line 249 size_t key_to_name(char *buf, const char
|
Line 240 size_t key_to_name(char *buf, const char
|
c = key[i]; |
c = key[i]; |
next = key[i + 1]; |
next = key[i + 1]; |
|
|
switch (key[i]) { |
switch (c) { |
|
|
case EOL: |
case EOL: |
|
|