Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

C Halp

Name: Hulio 2011-01-27 13:43

http://pastebin.com/QVkbT8AG

I'm attempting to pass an array from one function to a second where it will be filled with the current PATH, replacing colons with '/0/' characters.

I receive an error when trying to give the array a string, which I dont understand because when there is no secondary function and I do all the work in one class, it works perfectly.

Name: Anonymous 2011-01-27 14:05

I'm not trolling,
I'm new to C and this is a class project im working on.
I started with only the path()'s content in a main() with nothing else, and it worked fine.

I'm just confused as to why the assignment 'pathlist[i]=ch;'
doesnt work when I separate it into another function.


>>2
I know I haven't learned how to program well in c and plan on reading The C Programming language over the summer.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List