Whitespace cleanup.

This commit is contained in:
Leonardo Zide
2026-03-10 21:11:40 -07:00
parent 9e1b8e0032
commit a8e37df8ce
53 changed files with 580 additions and 583 deletions
+12 -12
View File
@@ -4,7 +4,7 @@
char* lcstrcasestr(const char* s, const char* find)
{
char c, sc;
if ((c = *find++) != 0)
{
c = tolower((unsigned char)c);
@@ -26,7 +26,7 @@ char* lcstrupr(char* string)
{
for (char* c = string; *c; c++)
*c = toupper(*c);
return string;
}
@@ -34,19 +34,19 @@ size_t lcstrcpy(char* dest, const char* source, size_t size)
{
if (size == 0)
return 0;
for (size_t i = 0; i < size; i++)
{
dest[i] = source[i];
if (source[i] == '\0')
{
return i;
}
}
dest[--size] = '\0';
return size;
}
@@ -56,16 +56,16 @@ size_t lcstrcat(char* dest, const char* source, size_t size)
const char* s = source;
size_t n = size;
size_t dlen;
while (n-- != 0 && *d != '\0')
d++;
dlen = d - dest;
n = size - dlen;
if (n == 0)
return(dlen + strlen(s));
while (*s != '\0')
{
if (n != 1)
@@ -75,8 +75,8 @@ size_t lcstrcat(char* dest, const char* source, size_t size)
}
s++;
}
*d = '\0';
return (dlen + (s - source));
}