C question about scanf

Giorgos Keramidas keramida at hades.hell.gr
Wed Sep 15 23:50:25 EEST 1999


On Wed, Sep 15, 1999 at 03:23:33PM +0300, Batis wrote:
% At 12:04 ?? 15/9/1999 +0300, you wrote:
% >On Wed, 15 Sep 1999, Giorgos Keramidas wrote:
% >
% >> Xrnsimopoieis tis fgets(), strtok() kai strtol() kai ftuveis auto to aisxro
% >> pragma pou legetai scanf().
% >
% >Xrhsimopoieis perl, kai oute pou koitas thn C.
% >
% 
% M'aresei pou oloi mou eipate oles aytes tis synthetes lyseis :) Egw vrika
% aplousteri.
% 
% Apla, stin scanf, anti gia %d vazw %ld kai doulevei mia xara...

Den diafwvw, alla eksakoloutho na proteino tin 'sintheti' lusn, giati gia
paradeigma to scanf() dev exei KANENA elegxo gia overflow, de sou leei poio
apo ta arguments apetuxe na diabastei, apla posa diabase sosta, kai ama
dokimaseis na diabaseis strings [epeidn sou exei givei apo alla pragmata
kakia sinitheia na xrnsimopoieis tis *evil* functions opws n scanf] 0a
pareis kati omorfa buffer overruns pou 0a glufeis ta daxtula sou kai ta
daxtula tou GDB :P

Good luck...

-- 
Giorgos Keramidas, <keramida at ceid.upatras.gr>
Public PGP key at finger://keramida@diogenis.ceid.upatras.gr/
"Today is not yesterday's tomorrow, but tomorrow's yesterday."
--
====================================================================
Gia boithia (h na diagrafhte) e-mail sto majordomo at hellug.gr
Ta archives tis listas einai sto http://lists.hellug.gr/archives
prin steilete kapoia erothsh psakte mipos exei hdh apanththei.
Gia opoiodipote problima stilte e-mail ston owner-linux-greek-users at hellug.gr
====================================================================



More information about the Linux-greek-users mailing list