November 7th, 2012, 12:57 AM
How do i make my one of my arrays equal the length of another
hi i have another question
okay i have one array1 that has a size array1 but this array stores a word from a file so every time a word gets stored its different size so the location of the null character is different
and i want my second array to equal the amount up to the null character of the first array
so something like
November 7th, 2012, 02:03 AM
Use malloc() or strdup(). Don't forget to call free() when you're done with it.
Up the Irons
What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home.
"Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest
Down with Sharon Osbourne
"I wouldn't hire a butcher to fix my car. I also wouldn't hire a marketing firm to build my website." - Nilpo
November 7th, 2012, 02:11 AM
um how do i do this im not familiar with these terms
Originally Posted by Scorpions4ever