Thanks interviewer, suppose all a[i] are legal digit, 0 -- 9, do you have the other way to convert it instead of atol();

bluewave (AlwaysStudent)

2002-2-14 -04: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杂谈