reorganizing

This commit is contained in:
joonicks
2018-04-04 06:04:58 +02:00
parent a5187a7a8f
commit c5b03f35e1
66 changed files with 1670 additions and 2742 deletions

View File

@@ -20,28 +20,12 @@
*/
#define STRING_C
#include "config.h"
#include "defines.h"
#include "structs.h"
#include "global.h"
#include "h.h"
/*
* callers responsibility to make sure text is not NULL
*/
int stringiscaps(const char *text)
{
int n,upper;
n = upper = 0;
while(text[n])
{
if ((text[n] >= 'A' && text[n] <= 'Z') || (text[n] == '!'))
upper += 2;
n++;
}
return(upper >= n);
}
/*
* returns NULL or non-zero length string
* callers responsibility that src is not NULL