mirror of
https://github.com/RevCurtisP/C02.git
synced 2025-02-19 19:31:04 +00:00
Updated memtest.c02 miotest.c02
This commit is contained in:
parent
9486a8c242
commit
67514ba522
@ -2,11 +2,12 @@
|
||||
* TESTMEM - Test Array Handling Functions *
|
||||
*******************************************/
|
||||
|
||||
#include <py65.h02>
|
||||
//Specify System Header using -H option
|
||||
#include <stddef.h02>
|
||||
#include <stdlib.h02>
|
||||
#include <stdio.h02>
|
||||
#include <stdiox.h02>
|
||||
#include <intlib.h02>
|
||||
#include <memory.h02>
|
||||
|
||||
char c, d, f, i, n, p;
|
||||
@ -16,11 +17,11 @@ char lttr[255];
|
||||
char nmbr[255];
|
||||
char temp[255];
|
||||
char dest[255];
|
||||
char less = "less";
|
||||
char more = "more";
|
||||
char most = "most";
|
||||
char fail = " Fail ";
|
||||
char pass = " Pass ";
|
||||
const char less = "less";
|
||||
const char more = "more";
|
||||
const char most = "most";
|
||||
const char fail = " Fail ";
|
||||
const char pass = " Pass ";
|
||||
|
||||
void prtemp() {
|
||||
puts("temp: ");
|
||||
|
@ -2,11 +2,12 @@
|
||||
* TESTMIO - Test Memory File Functions *
|
||||
****************************************/
|
||||
|
||||
#include <py65.h02>
|
||||
//Specify System Header using -H option
|
||||
#include <stddef.h02>
|
||||
#include <stdlib.h02>
|
||||
#include <stdio.h02>
|
||||
#include <stdiox.h02>
|
||||
#include <intlib.h02>
|
||||
#include <memory.h02>
|
||||
#include <memio.h02>
|
||||
#include <string.h02>
|
||||
@ -171,7 +172,7 @@ putln("Reading from memory file using mread()");
|
||||
iarray(&s); mread(mp, 10); puts(&s); putc(':'); if (strcmp(&digits)) fail(); else pass();
|
||||
iarray(&s); mread(mp, 26); puts(&s); putc(':'); if (strcmp(&upcase)) fail(); else pass();
|
||||
iarray(&s); mread(mp, 26); puts(&s); putc(':'); if (strcmp(&locase)) fail(); else pass();
|
||||
mread(mp,0); putdec(s); putc(':'); if (s) fail(); else pass();
|
||||
mread(mp,0); putdec(s[0]); putc(':'); if (s[0]) fail(); else pass();
|
||||
|
||||
goto exit;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user