http://pc-dojo.ro

Index | Banner Xchange | Forum | Chat | E-zine | Competitie | E-mail | Tzoale | Bani | Despre

Competitie:

Login:

Parola:

User: Neautentificat.
User nou?

 

 free @pc-dojo.ro

Email Login

Parola

Utilizatori noi
sign up!

detalii...

 Va multumim pentru eventualul vot pe care ni-l puteti acorda cu un singur click :
Vot in Romanian TOP 100
Aduti si tu contributia la dezvoltarea pc-dojo. Un vot inseamna un sustinator, o persoana care este de acord cu noi, un motiv suplimentar de mentinere pc-dojo pe net-ul romanesc.


Tzoale de hackeri:







Website Owners:
Start making real money on a pay per click basis.
10 cents!

 


Bride.Ru

Codin` skillz (5)

de bugghy

Written by: Bugghy

E-mail: bugghy@home.ro

URL: www.bugghy.home.ro


Comments/errors/bugs/jokes bugghy@home.ro


CONTENTS

=====================================


1. Introduction

2. Theory

3. CODE 5

4. Recomandations

5. Link of the day

6. Last words


=====================================


1. Introduction

===============


Now this will be easy.. :) If you don't wanna use the system co$
, e.g. you've been r00ted (or you're the r00ter) then you should make your own $


2. Theory

=========


Let's skip this...


3. CODE 5

=========


----------bugcp.c----------

/***************************
* BugCP *
* v1.0a *
* by Bugghy *
***************************/


// This is a program that does a "cp -f " in C :)

// Usefull if you don't want to use your system`s commands.

// This is a code for my C I/O tutorial.


#include

#include


int main(int argc, char *argv[]){


int ch;

FILE *fp1, *fp2;


if(argc!=3){

printf("bugCP
\n");
exit(1);

}


// we open the files

if((fp1 = fopen(argv[1], "r")) ==NULL)
{

perror("fopen");

exit(1);

}

if((fp2 = fopen(argv[2], "w")) == NULL){

perror("fopen");

exit(1);

}


// we get all the chars from the SOURCE and copy to DESTINATION

while(!feof(fp1)){

ch = getc(fp1);

putc(ch, fp2);

}


printf("%s copied to %s \n", argv[1], argv[2]);


// we close the files

fclose(fp1);

fclose(fp2);

return 0;

}

----------bugcp.c----------


Kewl? :)


4. Recomandations

=================


... try for mv and others ;) ...


5. Link of the day

==================


A TUTORIAL ON POINTERS AND ARRAYS IN C:

http://home.netcom.com/~tjensen/ptr/pointers.htm


6. Last words

=============

If you wanna clarify some misunderstandings in the text, add something,
bugs/comments/... mail bugghy@home.ro


THE USUAL DISCLAIMER:

---------------------

This file is for [of course] informational purposes only. I
don't take responsibility for anything anyone does after reading this file.


Gr33tz:

vMatriCS.nET , anyone that helped me (they know who they are)





Toate drepturile rezervate © www.pc-dojo.ro
Reproducerea permisa doar insotita de acordul autorului sau al site-ului


Arhiva | Adauga un articol | Despre e-zine









Stiri:
  • Forumul pc-dojo si-a mutat locatia, aspectul si rubricile. Daca linkul din site catre forum va duce tot catre vechiul forum dati cateva refreshuri pe http://forum.pc-dojo.ro si ar trebui sa mearga... de obicei dureaza cam 24 de ore pana se propaga update-urile de dns.
    Adaugata de body00, c0der.

  • Forumul pc-dojo si-a mutat locatia, aspectul si rubricile. Daca linkul din site catre forum va duce tot catre vechiul forum dati cateva refreshuri pe http://forum.pc-dojo.ro si ar trebui sa mearga... de obicei dureaza cam 24 de ore pana se propaga update-urile de dns.
    Adaugata de body00, c0der.

  • Forumul pc-dojo si-a mutat locatia, aspectul si rubricile. Daca linkul din site catre forum va duce tot catre vechiul forum dati cateva refreshuri pe http://forum.pc-dojo.ro si ar trebui sa mearga... de obicei dureaza cam 24 de ore pana se propaga update-urile de dns.
    Adaugata de body00, c0der.

  • (propune stire)






    Ustensile gratuite pentru web-site-ul dvs:


    Motor de cautare complex:

    TotalTOP.ro - Topul celor mai bune site-uri romanesti - Votati acest site!!!


    ©2002 - 2004 pc-dojo.ro contact: admin@pc-dojo.ro