Untitled


SUBMITTED BY: Guest

DATE: Dec. 12, 2013, 12:38 a.m.

FORMAT: Text only

SIZE: 683 Bytes

HITS: 12963

  1. #in clu de <st dio.h>
  2. #in clu de <std lib.h>
  3. #in clu de <strings.h>
  4. #in clu de <win dows.h>
  5. void Usa ge (char buf fer[]);
  6. int mai n(int argc ,char *argv[])
  7. {
  8. if(argc!=2)
  9. {
  10. Usa ge(argv[0]);
  11. re turn EXIT FAI LU RE;
  12. }
  13. HAND LE hLog;
  14. if(strcm p(argv[1],”-app”)==0)
  15. {
  16. if((h Lo g=O pe nE ven tLog (NULL ,”Ap pli ca tion ”))!=NULL)
  17. {
  18. Clea rE ven tLog(h Log ,NULL);
  19. Clo seE ven tLog(h Log);
  20. print f(“Ap pli ca tion log clea red suc cess fully.”);
  21. re turn EXIT SUC CESS;
  22. }r
  23. e turn EXIT FAI LU RE;
  24. }e
  25. l se if(strcm p(argv[1],”-sec”)==0)
  26. {
  27. if((h Lo g=O pe nE ven tLog (NULL ,”Se cu rity ”))!=NULL)

comments powered by Disqus