Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 6432 → Rev 6433

/programs/develop/ktcc/trunk/libc/stdlib/assert.c
0,0 → 1,21
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <kolibrisys.h>
 
 
void __assert_func (char *file, int line, char *ass)
{
char buf[100];
 
snprintf(buf,100,"Assertion failed: %s, file %s, line %d\n", ass, file, line);
debug_out_str(buf);
exit(-1);
}
 
void __trace_func (char *file, int line, char *msg)
{
char buf[100];
snprintf(buf,100,"Trace: %s, file %s, line %d\n", msg, file, line);
debug_out_str(buf);
}
/programs/develop/ktcc/trunk/libc/stdlib/div.c
0,0 → 1,10
#include <stdlib.h>
 
div_t div (int numer, int denom)
{
div_t res;
res.quot = numer / denom;
res.rem = numer % denom;
 
return res;
}
/programs/develop/ktcc/trunk/libc/stdlib/tolower.c
1,3 → 1,4
#include <stdlib.h>
/*
** return lower-case of c if upper-case, else c
*/
/programs/develop/ktcc/trunk/libc/stdlib/toupper.c
1,3 → 1,4
#include <stdlib.h>
/*
** return upper-case of c if it is lower-case, else c
*/