mirror of
https://github.com/Noratrieb/libuwuc.git
synced 2026-01-15 20:25:04 +01:00
fopen and tests
This commit is contained in:
parent
862ef8dc22
commit
b795ee80c9
14 changed files with 97 additions and 45 deletions
|
|
@ -1,13 +1,14 @@
|
|||
#include <string.h>
|
||||
#include <assert.h>
|
||||
|
||||
int main(void) {
|
||||
int main(void)
|
||||
{
|
||||
char buf[10];
|
||||
|
||||
memset(buf, 34, sizeof(buf));
|
||||
|
||||
for (int i = 0; i < 10; ++i) {
|
||||
if (buf[i] != 34) {
|
||||
return 1;
|
||||
}
|
||||
for (int i = 0; i < 10; ++i)
|
||||
{
|
||||
assert((buf[i] == 34) && "memset failed to write byte");
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue