November 6th, 2012, 11:57 PM
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, 01: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, 01:11 AM
um how do i do this im not familiar with these terms
Originally Posted by Scorpions4ever