User Tools

Site Tools


resources_in_c_c_programs

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
resources_in_c_c_programs [2018/03/15 15:25]
xylene
resources_in_c_c_programs [2018/03/16 05:05] (current)
xylene
Line 95: Line 95:
 !!todo; add example (ascii text) !!todo; add example (ascii text)
 <code cpp> <code cpp>
 +#include <​resources.h>​
 +
 int main(int argc, char * argv[]) { int main(int argc, char * argv[]) {
-    // wellhere's code +    // Print the address and size of an entry 
-    printf("​hello world!\n");+    //  
 +    printf("​resources.noises.harp_1_wav._size = %d\n", 
 +        resources.noises.harp_1_wav._length);​ 
 +    printf("​resources.noises.harp_1_wav._data = %d\n"
 +        resources.noises.harp_1_wav._data);
 } }
 </​code>​ </​code>​
resources_in_c_c_programs.txt · Last modified: 2018/03/16 05:05 by xylene