fopen and tests

This commit is contained in:
nora 2023-10-04 21:35:18 +02:00
parent 862ef8dc22
commit b795ee80c9
14 changed files with 97 additions and 45 deletions

View file

@ -1,8 +1,8 @@
#include <stdio.h>
#include <assert.h>
int main(int argc, char *argv[]) {
int main(int argc, char *argv[])
{
int result = printf("Hello, world!\n");
if (result != 14) {
return 1;
}
assert((result == 14) && "printf returned wrong number of chars");
}