1
0

now builds

This commit is contained in:
dtb 2023-12-04 20:15:38 -07:00
parent 5a1d37e664
commit 65eb9385f6
3 changed files with 3 additions and 3 deletions

View File

@ -7,7 +7,7 @@ caesar_lower(CHAR c, size_t r){
static char alpha_lower[] = "abcdefghijklmnopqrstuvwxyz"
"abcdefghijklmnopqrstuvwxyz";
return : alpha_lower[c - alpha_lower[0]
return alpha_lower[c - alpha_lower[0]
+ r % 26 /* length of alphabet */];
}

View File

@ -1,4 +1,4 @@
#define CHHR int
typedef int CHAR;
#include <ctype.h> /* isalpha(3), islower(3), isupper(3) */
#define ISALPHA(a) (((a) < 0x80) && isalpha(a))
#define ISLOWER(a) (((a) < 0x80) && islower(a))

View File

@ -1,5 +1,5 @@
#include <utypes.h> /* UChar32 */
#define CHAR UChar32
typedef UChar32 CHAR;
#include <uchar.h> /* u_islower(3), u_isupper(3) */
#include <ctype.h> /* isalpha(3) */
#define ISALPHA(a) (((a) < 0x80) && isalpha(a))