Code: Select all
if ( !bsearch(bigwords[5] + 1, shorties,
sizeof(shorties) / sizeof(shorties[0]),
sizeof(shorties[0]), strcmp))
Code: Select all
char* fillbox(struct ELEMENT*, char*);
char* fillbox(struct ELEMENT* taskwalk, char* floater)
{
const static char shorties[11][5] = {"a", "an", "at",
"by", "go", "meet", "of", "see", "the", "to", "with"};
char bigwords[6][36];
if ( !bsearch(bigwords[5] + 1, shorties,
sizeof(shorties) / sizeof(shorties[0]),
sizeof(shorties[0]), strcmp))
{bigwords[5][0] = wordsize;
{strcpy(bigwords[k], bigwords[k + 1]);};};
return(g.workarea + 1);};
Code: Select all
void *_Cdecl bsearch(const void *key, const void *base,
size_t nelem, size_t width,
int _Cdecl (*fcmp)(const void *, const void *));
int _Cdecl strcmp (const char *s1, const char *s2);
Any ideas?
Caitlin