mirror of
https://github.com/justinethier/cyclone.git
synced 2025-07-15 08:47:35 +02:00
Temporary file
This commit is contained in:
parent
13e260300f
commit
325112e50b
1 changed files with 20 additions and 0 deletions
20
test.c
Normal file
20
test.c
Normal file
|
@ -0,0 +1,20 @@
|
|||
// A temporary test file
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdint.h>
|
||||
#include <string.h>
|
||||
|
||||
void main(){
|
||||
char c[128];
|
||||
uint32_t val = 0x32363435;
|
||||
uint8_t *ptr = (uint8_t *)&val;
|
||||
int i, j = 0;
|
||||
//memset(c, 0x34, 128);
|
||||
for (i = 0; i < 127; i++) {
|
||||
c[i] = ptr[j++];
|
||||
if (j == 4) j = 0;
|
||||
}
|
||||
c[127] = '\0';
|
||||
printf("%s\n", c);
|
||||
return;
|
||||
}
|
Loading…
Add table
Reference in a new issue