Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/structures/src/Char/ctype.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* They may return any non-zero value when true, but a SAC bool is true if 1.
*/

#include <sacinterface.h>
#include <ctype.h>

typedef unsigned char uchar;
Expand Down Expand Up @@ -68,12 +69,12 @@ int SACiscntrl(uchar c)
return iscntrl(c) != 0;
}

int SACisascii(int c)
int SACisascii(sac_int c)
{
return c >= 0 && c < 256 && isascii(c) != 0;
}

int SACtoascii(int c)
int SACtoascii(sac_int c)
{
return toascii(c & 0xFF);
}
Expand Down