From 21000e79c0d88ec0ece822837db9fb5f663d28ed Mon Sep 17 00:00:00 2001 From: xolatile Date: Tue, 3 Oct 2023 10:35:13 -0400 Subject: [PATCH] Hop. --- xtandard.c | 8 ++++---- xtandard.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/xtandard.c b/xtandard.c index dd1110c..b036c94 100644 --- a/xtandard.c +++ b/xtandard.c @@ -465,7 +465,7 @@ int character_is_alpha (char character) { int character_is_symbol (char character) { char * symbols = "~!@#$%^&*()+{}|:\"<>?`-=[]\\;',./"; - return (character_compare_array (character, symbols, string_length (symbols))); + return (character_compare_array (character, symbols)); } int character_is_visible (char character) { @@ -487,17 +487,17 @@ int character_is_underscore (char character) { int character_is_hexadecimal (char character) { char * hexadecimals = "0123456789ABCDEF"; - return (character_compare_array (character, hexadecimals, string_length (hexadecimals))); + return (character_compare_array (character, hexadecimals)); } -int character_compare_array (char character, char * character_array, int count) { +int character_compare_array (char character, char * character_array) { int i = 0; do { if (character == character_array [i]) { return (1); } - } while (++i != count); + } while (++i != string_length (character_array)); return (0); } diff --git a/xtandard.h b/xtandard.h index fb8b6c4..d8f8aab 100644 --- a/xtandard.h +++ b/xtandard.h @@ -117,7 +117,7 @@ extern int character_is_escape (char); extern int character_is_underscore (char); extern int character_is_hexadecimal (char); -extern int character_compare_array (char, char *, int); +extern int character_compare_array (char, char *); extern int string_length (char *); extern void string_reverse (char *);