Server for Information Technologies

(095) 932-9212, 932-9213, 939-0783
E-mail: info@citforum.ru
(!) CIT Forum CD-ROM

MKSTR(1)
XENIX System V (21 1987)


mkstr - coae aa c eca cooe

      mkstr [ - ] messagefile prefix file ...


Mkstr coyec coa ao c eca cooe o oax. Ee peee oe aeo copa paep popa c o oeco aocecx cooe c apyy a ccey a ce ycpae eoxooc ocoo pya apya ec cooe.

Mkstr opaaae a yaa a file, oea opaoay epc xooo aa pyo a, e coco peca prefix epoaaoo e aa. Ta oaa mkstr cey opao:

     mkstr pistrings xx *.c
a oaa po oy, o ce cooe ao a C, xpaxc eye aaoe, yy oee a pistrings, a opaoae o cxox ao yy axoc aax c peca xx.

opao cooe cxox aax mkstr e o xoo ooe cpoy `error("'. p ee oapye cpoa, aaac c `"', oeaec a, ooea ye coo epeoo cpo. Hyeo co ooe ypoc poeypy ee cpo, epeo cpo ooe pocopa coepoo aa cooe pe popay cat. Opaoaa o cxooo eca popa coep ycaoy yaae c oo y lseek yp aa, oopoo eac cooe. popac oe aca y error, oopa opae a cooe, ae eo cpoy o ee. Cey pep cppye o oxo.

     char efilname[] =  "/usr/lib/pi_strings";
     int  efil = -1;
     error(a1, a2, a3, a4)
     {
          char buf[256];
          if (efil < 0) {
               efil = open(efilname, 0);
               if (efil < 0) {
     oops:
                    perror(efilname);
                    exit(1);
               }
          }
          if (lseek(efil, (long) a1, 0) || read(efil, buf, 256) <= 0)
               goto oops;
          printf(buf, a2, a3, a4);
     }

.
lseek(2), xstr(1)


Bce apye, a cee e aa, c eoae
Comments: info@citmgu.ru
Designed by Andrey Novikov
Copyright © CIT