s en C
>
>
> Arnaud Vandyck wrote:
> > J'aimerais effectuer quelques petits programmes en C (des
> tous petits
> > exercices de logiques, etc...). Un coll�gue m'a pr�t� un syllabus de
> > Saint-Laurent (Li�ge), cours du soir. Est-ce que quelqu'un aurait un
> ^^^^^^^^^^^^^
> lollllllllllllllllllllllll
> brule-le, le syllabus
>
> mdrrrrrrrrrrrrrr
>
> > lien pour les d�buts en C sous Linux?
> > J'aimerais, par exemple, lire les arguments en ligne de commande et
> > les transformer en entier ou ce genre de choses. Je suppose
> (j'esp�re)
> > que l'on peut effectuer ce genre d'op�ration :))... et qu'elles ont
> > d�j� �t� cod�es.:)
>
> int main(int argc, char* argv[]) {
> int i;
> int intValue;
>
> for (i=0; i < argc; i++) {
> intValue = atol(argv[i]);
// je dirais plutot:
intValue = atoi(argv[i]);
// ou:
lngValue = atol(arg[i]); // si long lngValue est d�clar�
> ......
> }
>
> return(0);
> }
>
> --
> -o) Pascal Bleser ATOS Origin/Aachen(DE) |
> /\\ <[EMAIL PROTECTED]> |
> _\_v <[EMAIL PROTECTED]> |
> ---------------------------------------------|
> Jesus saves,Buddha makes incremental backups :
> ---------------------------------------------'
>
>
> _______________________________________________________
> Linux Mailing List - http://www.unixtech.be
> Subscribe/Unsubscribe: http://www.unixtech.be/mailman/listinfo/linux
> Archives: http://www.mail-archive.com/[email protected]
> IRC: efnet.skynet.be:6667 - #unixtech
>
This electronic transmission and any attached document is intended exclusively for the person or entity to whom it is addressed and may contain confidential and/or privileged material. If you are not the intended recipient, any disclosure, reproduction, copying, distribution, or other dissemination or use of this communication is strictly prohibited. If you receive this message in error, please contact the sender and delete the material from any and all computers. SPEOS does not warrant a proper and complete transmission of this information, nor does it accept liability for any delays.

