tayavegan.blogg.se

3ds homebrew fbi
3ds homebrew fbi







3ds homebrew fbi

Line 20 - You're opening a file in (binary) append mode, meaning that if the file already existed you're going to append rather than replace which is almost certainly not what you want. Just use the argv value and drop a comment near where you use it for clarity if you must. Lines 18+19 - While it helps to give variables meaningful names, you're not really gaining anything here as you need the variables in question exactly once.

3ds homebrew fbi

No need for an 'else' which means you drop 1 level of indentation which is always nice. Line 16 - Instead of having a big 'if' whose body is 90% of the program, test for argc not being 3 and if so, spit out an error and return.

3ds homebrew fbi

Line 10 - I have no idea what requires that include but it's not one I've seen much. You're using both (low for the socket, high for the output file).Īnyways, let's go over your code since it seems fairly decent. Typically you'd pick one and do everything with it. The only bit of cleanliness that's rubbing me the wrong way is that in C you have low-level IO using int file descriptors and high(er) level io using FILE* pointers. Well for all intents and purposes your code is fine. I'm new to C so I have no idea what to do. Printf("Bytes received %d\n",bytesReceived) If((sockfd = socket(AF_INET, SOCK_STREAM, 0)) 0) Here is the code I'm currently working on: I looked at some code on other websites but non of which seems to work.

#3ds homebrew fbi android#

I mainly want it so I can run it on Android (compile C as Linux binary, place it in /system/xbin). I want a C version so I can port it easily to other devices. The dev of the homebrew is using a Java program to send the files. There's an option within the application which enables you to recieve a. So, I've been using a program called "FBI" for a while, which lets a user install.









3ds homebrew fbi