Computing.Net > Forums > OpenVMS > Problem with 'scanf'

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Problem with 'scanf'

Reply to Message Icon

Name: prv
Date: February 21, 2003 at 16:24:58 Pacific
OS: OpenVMS 7.3-1
CPU/Ram: Alpha
Comment:

Hello,

I have a test program. Here is the code:
#include


int testc()
{
int invalue;

printf("ENtera a integer value: ");
scanf("%d",&invalue );
printf("you entered : %d\n", invalue );
return 1;
}

This program works correctly, i.e. waits for the user input on VMS versions less than 7.3-1. But on VMS 7.3-1, it won't wait for the user input and continues with bogus input values. Any help will be appreciated.

Thank you.
Prv



Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to OpenVMS Forum Home


Sponsored links

Ads by Google


Results for: Problem with 'scanf'

problem with protaction www.computing.net/answers/openvms/problem-with-protaction/446.html

VMS Threads/ASTs... Problems www.computing.net/answers/openvms/vms-threadsasts-problems/313.html

Problem with ana/err & erfmscp.exe www.computing.net/answers/openvms/problem-with-anaerr-amp-erfmscpexe/267.html