Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

ANONIX 1.1 beta

Name: Badofold 2011-06-21 22:25

This is ANONIX 1.1 beta, a new library for C/C++ language.

Ⓒ 2011 Badofold

ctype.h

/*
ANONIX 1.1 beta
Done By Badofold in June 2011

File: ctype.h
Directory: .
Full path: ./ctyle.h

Function: Provide declarations of functions for ANONIX

We are Anonymous. We are Legion. We do not forgive. We do not forget. Expect us

Ⓒ 2011 Badofold
*/
#ifndef CTYPE_H_
int isalnum(int c);
int isalpha(int c);
int iscntrl(int c);
int isdigit(int c);
int isgraph(int c);
int islower(int c);
//Ⓒ 2011 Badofold
int isprint(int c);
int ispunct(int c);
int isspace(int c);
int isupper(int c);
int isitasymbol(int c); //Checks if the character is a symbol, written by Badofold in 2011
int isxdigit(int c);
int tolower(int c);
int toupper(int c);
#endif
//Ⓒ 2011 Badofold


[code]
ctype.c
/*
ANONIX 1.1 beta
Done By Badofold in June 2011

File: ctype.c
Directory: .
Full path: ./ctyle.c

Function: Provide function definitions for ANONIX


We are Anonymous. We are Legion. We do not forgive. We do not forget. Expect us

Ⓒ 2011 Badofold
*/
#include "ctype.h"
int isalnum(int c) { return isalpha(c) | isdigit(c); }
int isalpha(int c) { return isupper(c) | islower(c); }
int iscntrl(int c) { return ((c < 0x20) || (c == 0x7f)) ? 1 : 0; }
int isdigit(int c) { return ((c >= '0') && (c <= '9')) ? 1 : 0; }
int isgraph(int c) { return ((c != ' ') && isprint(c)) ? 1 : 0; }
int islower(int c) { return ((c >= 'a') && (c <= 'z')) ? 1 : 0; }
//Ⓒ 2011 Badofold
int isprint(int c) { return ((c >= ' ') && (c <= '~')) ? 1 : 0; }
int ispunct(int c) { return ((c != ' ') && !isalnum(c)) ? 1 : 0; }
int isitasymbol(int c)
{

/*
Function: isitasymbol
Arguments: int c (int, c)

Function: Checks if the character is a symbol W

Written by Badofold in 2011
*/

else if ( c == '&' )
{
    return 1 ;
}

else if ( c == '$' )
{
    return 1 ;
}

else if ( c == '!' )
{
    return 1 ;
}

else
{
    return 0 ; //No symbol found, returning 0
}

}
int isspace(int c) { return ((c == ' ') || (c == '\f') || (c == '\n') || (c == '\r') || (c == '\t') || (c == '\v')) ? 1 : 0; }
int isupper(int c) { return ((c >= 'A') && (c <= 'Z')) ? 1 : 0; }
int isxdigit(int c) { return (((c >= '0') && (c <= '9')) || ((c >= 'a') && (c <= 'f')) || ((c >= 'A') && (c <= 'F'))) ? 1 : 0; }
int tolower(int c) { return isupper(c) ? c - 'A' + 'a' : c; }
int toupper(int c) { return islower(c) ? c - 'a' + 'A' : c; }
//Ⓒ 2011 Badofold

Name: Anonymous 2011-06-22 10:09

POSIX shit.

Who the hell wants compatability with all the shitty programs around.

What's needed is a new system from the ground up.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List