No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
7 Posted Topics
I'm no assembly wizard, but I'm writing a bootloader and I get a few compile/assembler errors I haven't been able to find a solution to: Heres the error messages and the code that it applies to: [CODE] os_size: .word 0 .word 0 lea %ax,os_size # Error: suffix or operands invalid … | |
I'm actually trying to do this in objective c, but I belive the theory probarbly are the same for C++. Heres an example of what I want to do with a simple, working, example using an integer: [CODE=c]void func2(int *i) { *i = 2; } void func1() { int i … | |
I'm trying to create a simple server that starts a new thread for each new client that connects. I know I can use fork(), but I've heard that threads are more efficient. Also I have some global queues, so if I used fork(), each process would get their own version … | |
I've written a method that takes a variable number of arguments. My problem is that the method is supposed to do one thing if there is only one argument, and something different if it recieves multiple arguments. If it's one argument I'm supposed to get info from a global variable, … | |
Hi. I have this codeline: [CODE=c]fprintf(file, "The\necake\nis\na\nlie");[/CODE] When I compile and run in Linux it outputs nicely like so: The cake is a lie but when I compile and run in Windows (Vista), using cygwin, the newline doesn't work and output is like this: Thecakeisalie Anybody have an idea why? | |
I've made this rather messy method that is supposed to split the message parameter (max 160 byte) into 60-byte strings if it is larger than 60 bytes. The message is always between quotes so I also want to ignore them and just get whats between the quotes. Example: "Hi there … | |
I want to write an x86 AT&T assembly function that compare a char-array one caracter at a time. If two characters at the same index are unequal it's suposed to return -1, else return 1. I'm going to call this function in a C code. So the function-call would look … |
The End.