mirror of
https://github.com/Noratrieb/libuwuc.git
synced 2026-03-15 08:36:06 +01:00
fopen and tests
This commit is contained in:
parent
862ef8dc22
commit
b795ee80c9
14 changed files with 97 additions and 45 deletions
|
|
@ -1,7 +1,10 @@
|
|||
#include <stdlib.h>
|
||||
#include <assert.h>
|
||||
|
||||
int main(void) {
|
||||
int main(void)
|
||||
{
|
||||
char *alloc = (char *)malloc(10);
|
||||
assert(alloc && "allocation failed");
|
||||
*alloc = 1;
|
||||
*(alloc + 9) = 2;
|
||||
free(alloc);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue