Created
May 2, 2018 04:28
-
-
Save kdrnic/90f8ec2c621ebcf8acd82a4a5d086f85 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <allegro.h> | |
| #include <stdio.h> | |
| int main(int argc, char ** argv) | |
| { | |
| char lin[1024] = "v 0.123 0.456 -0.789"; | |
| float x, y, z; | |
| allegro_init(); | |
| if(argc > 1) install_keyboard(); | |
| sscanf(lin, "%*s %f %f %f", &x, &y, &z); | |
| printf("%f %f %f\n", x, y, z); | |
| return 0; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment