Re: scanf

Search this archive.

From: P.Aubry (paubry@weinfelden.ch)
Date: Wed 17 Jan 2001 - 11:38:03 IST


Marco Melo wrote:

> But how i can make  program with svgalib using scnaf.
> Is there a equivalent function of scnaf in svgalib????
>
> Bye.

You can use scanf() in SVGAlib, but :

1. make shure you write scanf and not scnaf !
2. the declaration of scanf() is in stdio.h, so you have
    to     #include <stdio.h>.
3. the argument in scanf() must be a  p o i n t e r
    to some value, e.g. scanf("%d",&xyz). (the &
    makes all the difference).

 Do not ask me what a pointer is or what it is used
 for !   Pierre




>

>






>
>
> .
>





------------------------------------------------------------------
Unsubscribe:  To:   listbot@svgalib.org
              Body: unsubscribe linux-svgalib


This archive was generated by hypermail 2.1.4 : Wed 21 Jan 2004 - 22:10:23 IST