![]() |
|
scanf function |
sebastien nicaisse
Member #2,252
April 2002
|
Hello, I'm new members and I discoved the allegro library. But, i have a little probleme. I want write a editable text. Exist a function in allegro library which looks like to a scanf function ? I thank to answer my question. SEB |
Thomas Harte
Member #33
April 2000
![]() |
No, Allegro has no equivalent of scanf, you must write your own! But what you can do is write a function to accept a string as input, then leave the parsing of contents of that string to sscanf. E.g.
Which isn't code useful for everyone because of the assumptions made about the background (i.e. that it is a single colour) and the fact that you can't do anything else at the same time, so its really only useful on the screen bitmap, but I think it gets the point across? [My site] [Tetrominoes] |
|