<p dir="ltr">I'm not at a keyboard now, but strtol could do it all if you provide a non-NULL end pointer. (That will make sense on reading the strtol man page.) Just subtract the end from the start and compare to 5,after specifying base ten. </p>
<div class="gmail_quote">On May 22, 2014 6:17 PM, "Robert L. Harris" <<a href="mailto:robert.l.harris@gmail.com">robert.l.harris@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div><br></div>Anyone have a very simple C program source that given a command of :<div><br></div><div>./Validate XXXXX</div><div><br></div><div><br></div><div>it will verify that XXXXX is a 5 digit integer and then execute </div>
<div><br></div><div>system( "/bin/touch XXXXX");</div><div><br></div><div><br></div><div><br></div><div>There's much more to it but I'm hung up on this. Unfortunately I'm not a C person.</div><div>
<br>
</div><div>Robert</div><div><br><div><div><br></div>-- <br>:wq!<br>---------------------------------------------------------------------------<br>Robert L. Harris<br><br>DISCLAIMER:<br> These are MY OPINIONS With Dreams To Be A King,<br>
ALONE. I speak for First One Should Be A Man<br> no-one else. - Manowar
</div></div></div>
<br>_______________________________________________<br>
Ale mailing list<br>
<a href="mailto:Ale@ale.org">Ale@ale.org</a><br>
<a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a><br>
See JOBS, ANNOUNCE and SCHOOLS lists at<br>
<a href="http://mail.ale.org/mailman/listinfo" target="_blank">http://mail.ale.org/mailman/listinfo</a><br>
<br></blockquote></div>