mirror of
https://github.com/cc65/cc65.git
synced 2024-12-22 12:30:41 +00:00
Added the div function
git-svn-id: svn://svn.cc65.org/cc65/trunk@1470 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
parent
1ee3ccfdc2
commit
55baa52735
@ -46,7 +46,11 @@
|
|||||||
#define EXIT_SUCCESS 0
|
#define EXIT_SUCCESS 0
|
||||||
#define EXIT_FAILURE 1
|
#define EXIT_FAILURE 1
|
||||||
|
|
||||||
|
/* Return type of the div function */
|
||||||
|
typedef struct {
|
||||||
|
int rem;
|
||||||
|
int quot;
|
||||||
|
} div_t;
|
||||||
|
|
||||||
/* Memory management */
|
/* Memory management */
|
||||||
void* __fastcall__ malloc (size_t size);
|
void* __fastcall__ malloc (size_t size);
|
||||||
@ -71,6 +75,7 @@ long __fastcall__ atol (const char* s);
|
|||||||
int __fastcall__ atexit (void (*exitfunc) (void));
|
int __fastcall__ atexit (void (*exitfunc) (void));
|
||||||
void* bsearch (const void* key, const void* base, size_t n,
|
void* bsearch (const void* key, const void* base, size_t n,
|
||||||
size_t size, int (*cmp) (const void*, const void*));
|
size_t size, int (*cmp) (const void*, const void*));
|
||||||
|
div_t __fastcall__ div (int numer, int denom);
|
||||||
void exit (int ret);
|
void exit (int ret);
|
||||||
char* __fastcall__ getenv (const char* name);
|
char* __fastcall__ getenv (const char* name);
|
||||||
void qsort (void* base, size_t count, size_t size,
|
void qsort (void* base, size_t count, size_t size,
|
||||||
|
Loading…
Reference in New Issue
Block a user