[Solved] Excel data file for menu program [closed]

The question as it stands is quite vague, but here goes. Your assembler/C code needs the data in a given format, to be able to assemble/compile. You suggest using Excel to maintain the menus… your assembler/compiler will not understand xls or csv (or most likely xml) so a direct export is not an option. However, … Read more

[Solved] Is there string in C?

The standard string.h header file does not define a data type called string, it provides functions for manipulating C-style strings, which are null-terminated character arrays. For example, you can do something like: #include <stdio.h> #include <string.h> int main(void) { char *myName = “paxdiablo”; printf(“Length of ‘%s’ is %zu\n”, myName, strlen(myName)); return 0; } Note the … Read more

[Solved] How to insert for loop in void function?

result in main and result in decode are two different variables. If you want decode to know about the result from main you should pass it as a parameter: void decode(unsigned char* msg, int result[5]) { // Remove declaration of result // Keep the rest of the code } int main() { /* other code … Read more