Wow guys, that was pseudocode -- not actual code (I thought this was clear when I said "In a nutshell" and considering it made no sense and would never compile as actual code.) I didn't want to post...
Type: Posts; User: Ryan.
Wow guys, that was pseudocode -- not actual code (I thought this was clear when I said "In a nutshell" and considering it made no sense and would never compile as actual code.) I didn't want to post...
I have a function foo()
foo has a local variable var
I want to change var from inside another function
Thus, I figured I would do a call to the other function with &var and then change var...
To quote myself: "That said, I think the above was way wrong."
I was confused myself, hence...
Thanks for the advice. I actually had the linked list version laying around before I wrote...
Isn't that pretty much what I am doing? Minus the free, since this is assembly.
And there is no tail reference.
The actual problem I am dealing with in assembly is a linked list. I just made an array for modelling purposes because it is easier to translate into MIPS assembly. Assembly is rather annoying when...
Hello...
I have a solution to this problem, but I think it is too complicated to be optimal. I need it as simple as possible before I start coding it in assembly.
Here is what I am given (v's...
Figured out the warnings. Thanks again.
Thanks so much. I spent so much time trying to figure that out...
As for the malloc / free's, I have no idea how to fix them. Everything seems to work, though... this is just test code for...
Anybody know what I am doing wrong? I have been trying to compile this simple file for like an hour... and Google was no help in solving the mystery.
Troublesome code is highlighted.
Main...
Thanks for your input. I am probably going to be marked down for not using free. Is it possible you can you explain more clearly what you mean by "close argv, modify it, and then pass it to the...
Forget it.
This loop fixed the assignment
for ( i = 0; i < *num_words_ptr; i++ )
argv[ i ] = str_tokens[ i ] ;
I thought I fixed it, but apparently not.
I have it 90% working, but I still have the issue with main's args that need to change.
Instead of being vague, this time I am going to be very...
I did not understand correctly how main handled the function. When I finally understood (this morning), it took me 1 hour to code it and get it working. I have spent over 20 hours on it approaching...
Everything in the package is linked to argv... the assignment specifically requires us to modify argv.
There are problems with that.
For one, saved_args doesn't contain everything argv does -- it is not a 1:1 map
Secondly, the program package uses argv, so I have to change that directly (or...
I am. Going. Freaking. Crazy. I searched all over for a solution, and cannot find one. Please don't harp on me if you can find one in like 30 seconds -- maybe I suck at search.
This is, plain...