But .............

interview (intervieweree)
it really depends on your business logic,
for instance,
you have n elements array
a[0]='1';
a[1]='3';
....
a[m]='\x07';
.....
a[n-2]='3';
a[n-1]='\0';

what will you do with '\x07'?
treat it as 7 or 0 or skip it?
(#368962@0)
2002-2-14 -05:00

回到话题: Please help C questions- convert array to unsigned long: I have an array b[0] ='1'; ..b[6]='7'; b[7]=0; I want convert to unsigned long usl; usl = atol(buffer); there is no problem, but ...

回到论坛: HOME枫下论坛枫下论坛主坛工作学习IT杂谈

URL:   
http://www.rolia.net/zh/post.php?f=0&p=368962