view include/std.h @ 3:0aa0ad9e1cc3

Converted to work with doubles instead of ints (and other changes) Yeah, I really should have done this in seperate commits... My mistake in operations.h was fixed, the name table is now defined in operations.c All operations have been modified to start with op_ so I can identify the functions easier Functions ftoa and atof were defined (their functions are kind of obvious) Functions ftoa and itoa now return the location of the string they create iPrint was removed, it was useless The function append was created, it appends two strings
author Jonathan Pevarnek <pevarnj@gmail.com>
date Tue, 01 Mar 2011 23:33:51 -0500
parents b6182f00de82
children 90cd3d9a6ca3
line wrap: on
line source

#ifndef __STD_H
#define __STD_H

char* ftoa(double x, char *a, unsigned int prec);
char* itoa(int n, char *a);
int atoi(char *a);
double atof(char *a);

void sPrint(char *a);
void sGet(char *a, unsigned int n);

int strcmp(const char *a, const char *b);

int arrayLookup(char *text, const char array[][10], int last);

char* append(char *dest, char *src);

#endif