mirror of
https://github.com/Noratrieb/libuwuc.git
synced 2026-01-14 11:45:05 +01:00
11 lines
No EOL
184 B
C
11 lines
No EOL
184 B
C
#include <stdlib.h>
|
|
#include <assert.h>
|
|
|
|
int main(void)
|
|
{
|
|
char *alloc = (char *)malloc(10);
|
|
assert(alloc && "allocation failed");
|
|
*alloc = 1;
|
|
*(alloc + 9) = 2;
|
|
free(alloc);
|
|
} |