Xref: utzoo comp.unix.misc:636 comp.unix.wizards:23821 Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!clyde.concordia.ca!altitude!matrox!IRO.UMontreal.CA!kovic.IRO.UMontreal.CA!quennevi From: quennevi@IRO.UMontreal.CA (Charles Quenneville) Newsgroups: comp.unix.misc,comp.unix.wizards Subject: Password protection and clear() Message-ID: <1990Nov27.051754.15427@IRO.UMontreal.CA> Date: 27 Nov 90 05:17:54 GMT Sender: news@IRO.UMontreal.CA Organization: Universite de Montreal Lines: 36 Hello all! I have 2 questions to ask you... First of all, I would like to restrict the use of a program. I let my friend use my account but I don't want him to use a certain program. I thought of using a password protection. As soon as he would type the name of that program, it would prompt him for a password. The only problem is that I am having a hard time implementing such a thing in my program. Could anyone help me out? My second question concerns clear(); I have been trying to simply write a program to clear my screen. Here is what I do: #include main(argc, argv) { initscr(); clear(); } and this is how I compile: cc cl.c -o cl -lcurses -ltermcap The result is always the same! NOTHING!! I've even tried wclear() but no can do! When on a System V, no problems. but on the SparcStation1 we have, it doesn't work. We are running SunOS 4.1. I don't have the 5lib/cc compiler. Can anyone help?!?!? I thank you very much in advance -- Charles Quenneville quennevi@kovic.iro.umontreal.ca "Ventrebleu, de par ma chandelle verte, j'aime mieux etre gueux