By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,985 Members | 1,712 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,985 IT Pros & Developers. It's quick & easy.

a do while issue

momotaro
100+
P: 357
am getting a run time error caused by this function:
Expand|Select|Wrap|Line Numbers
  1. void scan_adress(adress *arr, int *cnt)
  2. {//cnt in initialized to zero.
  3. do
  4. {
  5. printf("\nENTER THE MACHINE NAME: ");
  6. scanf("%s", arr[*cnt].name);
  7. printf("\nENTER THE MACHINE IP: ");
  8. scanf("%s", arr[*cnt].IP);
  9. check_ip(arr[*cnt].IP);
  10. *cnt++;
  11. }while(*cnt < MAXSIZE && arr[*cnt].name != 'none' && arr[*cnt].IP != '0.0.0.0');
  12. }
  13.  
Aug 12 '07 #1
Share this Question
Share on Google+
1 Reply


Expert 10K+
P: 11,448
And what precisely is that runtime error? I'm not psychic during the weekends,
hence my question.

kind regards,

Jos
Aug 12 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.