HP 9000 User Manual page 112

Computers
Hide thumbs Also See for 9000:
Table of Contents

Advertisement

'include <nLtypes.h>
'include <stdio.h>
'include <Iocale.h>
mainO{
nLcatd nlms9_fd;
int month,day,year,nem_read;
setlocale(LC_ALL, .");
nlms9_fg • catopenrbirthday·,O);
printf(catgets(nlsmsgJd,NL _ SETN,2,·Please enter your birthday
On
the form MMlDDNY\n)"»;
num_read-nLscanf(catgets(nlms9_fd,NL_SETN,3,·%1$cJr»Al2$d/%d$d"),&month,&day,&year);
printf(catgets(nlmsg_fd,NL_SETN,4,·montha%1$d\n day=%2$d\n year=19%3$d\n\n"),month,day,year);}
C program
~-------T---------------I-------------t-----
________ I ______________
J_____________
- - - - - 1
:
LANG
=
american
LANG
=
gennan
LANG
= __ _
I
2. Please enter your birthday\n
2. Bitte, geben Sie Ihr
2.
I
On
the form MMlDDIVY);\n
Geburtsdatum ein, \n
3. - - - -
I
3. %1$d/%2$d/%3$d
Format, Tag(Nummer),
4.
I
4. month =%1d\n
Monat(Nummer),
- - - -
I
day
=
%2$d\n year
=
19%3$d
Jahr(die letzten zwei Ziffern);\n
I
3. %2$d,%1$d,%3$d
I
~~~~~
I
Monat ist % 1 $d\n
I
~_J_ah_r_is_t1_9_o/~~$_d
____________
~
I
Message Catalogs
~-------r--------------~-------------l-----
I _______
~
______________
J _____________ , _____
1
Please enter your birthday
(In 1he form MM/DD/yv):
mon1h- _ _ _
day=-:-:::-_ _ _
year
=
19 _ _ _
BMe; geben Sie Ihr Geburtsdatum ein.
Format: Tag(Nummer). Monat (Nummer).
Jahr(die leizten zwei Ziffem)
Tagist
~
_ _
Monatiri _ _ _
Jahr 1st 19 _ _ _
User Interface
L _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Figure 7-1. The Message Catalog System
The Message Catalog System 7-5
7

Advertisement

Table of Contents
loading

Table of Contents