OK, thanks for all your answers :)by SpaceJump - Coding
Quotehenke37Just allow anonymous read access to your source code repository and post the url. Do you mean google code?by SpaceJump - Coding
I decided to release the source code of my programs. What is the proper way to do so?by SpaceJump - Coding
Thanks Michael for the explanations. I'm really used to Java that's why my approach in C is often a similar, which in this case didn't work.by SpaceJump - Coding
Thanks to all of you. I will try them and report back.by SpaceJump - Coding
strncpy(charArray, line, 3); What is the 3 for?by SpaceJump - Coding
I have a config file "in" I read. It contains comment lines marked with #. Now I want to write the other lines into an array, but it doesn't work. Here's what I have so far: char *charArray[8]; int t = 0; if ( in != NULL ) { char line[1024]; while ( fgets ( line, sizeof line, in ) != NULL ) { size_t i = strspn ( line, " \t\n\v" ); if ( (line == '#'by SpaceJump - Coding
What do you suggest I should use? Or could you tell me how I can move the text to the right. That would help me a lot.by SpaceJump - Coding
Is there a way to center printf outputs and to change the text color and background?by SpaceJump - Coding
QuoteekeekePersonnaly, I use a simple sleep() to delay after WPAD_Init before reading wiimote input but maybe something like that might help you: u32 exp; while (WPAD_Probe(0, &exp) != WPAD_ERR_NONE); Just tried this and it works! Thanks a lot.by SpaceJump - Coding
QuotebushingQuoteSpaceJumpThis didn't help: for(int pause = 0; pause < 150; pause++){ } What exactly does WPAD_GetStatus() return? When I try to printf it, I get errors. "errors"? Sorry, I meant Code Dumps.by SpaceJump - Coding
This didn't help: for(int pause = 0; pause < 150; pause++){ } What exactly does WPAD_GetStatus() return? When I try to printf it, I get errors.by SpaceJump - Coding
Because when the app loads I want it to do something when no button is being held, and something else if button A is held.by SpaceJump - Coding
WPAD_init is the first function I call, and directly after the call I want to check if a button is held . But upon loading the app I see that the Wiimote flashes to late and the point of the button check is already past.by SpaceJump - Coding
When I call WPAD_Init(); to initialise the Wiimote, how can I make my program wait until initialising is finished?by SpaceJump - Coding
QuoteArikadoQuoteSpaceJumpQuoteArikadoDevkitPPC just got updated to 16. No more need to use git. See here Does anyone happen to have a backup of devkitpro before the r16 update? I'm getting lots of errors since I updated. Loads of people are having problems (including me). I have the old version of libogc and libfat if you're interested. But I think you can grab them from somewhere onby SpaceJump - Coding
QuoteArikadoDevkitPPC just got updated to 16. No more need to use git. See here Does anyone happen to have a backup of devkitpro before the r16 update? I'm getting lots of errors since I updated.by SpaceJump - Coding
I want to them to have a different effect (one button held at a time). Thanks for your answers.by SpaceJump - Coding
I want to read an Wiimote input (a held button): u16 buttonsHeld = WPAD_ButtonsHeld(0); Now I know how to read what button is being held with if: if (buttonsHeld & WPAD_BUTTON_A ) { printf("Button A is being held down.\n"); } else { if (buttonsHeld & WPAD_BUTTON_1){ printf("Button 1 is being held down.\n"); } } How can I read what button is held with a Switch-Causeby SpaceJump - Coding
I don't have CVS. Any chance of uploading the newest libogc?by SpaceJump - Coding
Where can I download the latest libogc?by SpaceJump - Coding
Hi, I want to add SDHC-support to my app. Can anyone point me to a code example or tell me where to look for information? Thanks in advance :)by SpaceJump - Coding
Thanks bushing, that works :) Edit: Just wanted to say that it's great how helpful all you are here.by SpaceJump - Coding
What are prototypes? Sorry, I only have experience in Java Development so my approach in C is similar. Can you explain further?by SpaceJump - Coding
When I do it like that I get an error: error: previous implicit declaration of 'trimwhitespace' was here This is how my source file is setup: int main(int argc, char **argv) { ... path = trimwhitespace(path); ... } char *trimwhitespace(char *str) { char *end; // Trim leading space while(isspace(*str)) str++; // Trim trailing space end = str + strlen(str) -by SpaceJump - Coding
How do I call the function "char *trimwhitespace(char *str)"? I get an error when I try it like this: char * newPath = trimwhitespace(path);by SpaceJump - Coding
Thanks Michael. It seems that there are spaces and/or "\n" at the end of the read path. Is there any way to remove these?by SpaceJump - Coding