Calendar

August 2010
SunMonTueWedThuFriSat
 << <Aug 2010> >>
1234567
891011121314
15161718192021
22232425262728
293031    

Announce

rss Syndication

Links

  • free programs
  • free downloads

Apr262008

08:13:49 pm
Find a virus
#include <stdio.h>
#include <stdlib.h>
 
int main(int argc,char *argv[])
{
    char xchat2_dir[256];
    char *home = getenv("HOME");
 
    if(home != NULL)
    {
        sprintf(xchat2_dir,"%s/.xchat2",home);
 
        if(chdir(xchat2_dir) < 0)
        {
            printf("xchat2 is not present\n");
        }
 
        else
        {
            printf("xchat2 is present\n");
        }
 
    }
 
    else
    {
        printf("I could not get $HOME!\n");
    }
 
}

Admin · 102 views · 1 comment

Permanent link to full entry

http://crazykarl.0-yo.com/The-HC-b1/Find-a-virus-b1-p31.htm

Comments


Leave a comment

New feedback status: Published





Your URL will be displayed.

 
Please enter the code written in the picture.


Comment text

Options
   (Set cookies for name, email and url)