Vprasanje - void()
Damir Dezeljin
programing at nib.si
Thu May 31 13:17:22 CEST 2001
Ciao!
Rad bi naredil eno funkcijo v stilu:
void ErrPrint(int errLevel, char *msg) {
fprintf(stderr, "\n\n%s\n\n\n", msg);
exit(errLevel);
}
To dela lepo in prav, vendar to funkcijo jaz v main() klicem:
ErrPrint(-1, "Error"); << to spet dela
Rad pa bi da bi mi delalo tudi, ce bi tako klical:
ErrPrint(-1, "%s error", "Kar neki"); << torej ce bi dodal se en ali vec
parametrov oz. formiran string
Kaj se to da naredit in kako????
Lp,
Dezo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://liste2.lugos.si/pipermail/lugos-prog/attachments/20010531/c17a5934/attachment-0001.html
More information about the lugos-prog
mailing list