MESSAGE
DATE | 2004-04-22 |
FROM | Billy
|
SUBJECT | Re: [hangout] Debugging cdparanoia in C
|
On Thu, Apr 22, 2004 at 07:02:01AM -0400, Ruben I Safir wrote: > > Actually - slowly my C skills are waking up. > > This whole line is bogus. > > buffer[pos-(cdrom_devices[i])]=j+48; > > > What happened to indirection? > > *pos = j + 'a'; > > pos is a point in the array of buffer pointing a '?'. > Just change that position in the for loop.
bzzt!
pos points to a character in the string 'cdrom_devices[i]', not a character in the string 'buffer'.
____________________________ NYLXS: New Yorker Free Software Users Scene Fair Use - because it's either fair use or useless.... NYLXS is a trademark of NYLXS, Inc
|
|