BlinkenArea - GitList
Repositories
Blog
Wiki
BlinkenLib
Code
Commits
Branches
Tags
Search
Tree:
962674e
Branches
Tags
master
v0.1
v0.2
v0.3
v0.3.1
v0.4
v0.4.1
v0.5
v0.5.1
v0.5.2
v0.5.3
v0.5.4
v0.5.5
v0.6.0
v0.6.1
v0.6.2
v0.6.3
v0.6.4
v0.6.5
v0.6.6
v0.6.7
v0.6.8
v0.6.9
v0.7.0
v0.7.1
v0.7.10
v0.7.2
v0.7.3
v0.7.4
v0.7.5
v0.7.6
v0.7.7
v0.7.8
v0.7.9
v0.8.0
v0.8.1
BlinkenLib
BlinkenConv.c
BlinkenLib v.0.1.1 (2005-01-23)
Christian Heimke
commited
962674e
at 2011-07-15 09:00:54
BlinkenConv.c
Blame
History
Raw
/* BlinkenLib * version 0.1 date 2004-11-25 * Copyright (C) 2004: Stefan Schuermans <1stein@schuermans.info> * Copyleft: GNU public license - http://www.gnu.org/copyleft/gpl.html * a blinkenarea.org project * powered by eventphone.de */ #include <stdio.h> #include <stdlib.h> #include "BlinkenMovie.h" int main( int argCnt, char * * args ) { stBlinkenMovie * pMovie; char * str; //print info printf( "BlinkenLib\n" "version 0.1 date 2004-11-25\n" "Copyright (C) 2004: Stefan Schuermans <1stein@schuermans.info>\n" "Copyleft: GNU public license - http://www.gnu.org/copyleft/gpl.html\n" "a blinkenarea.org project\n" "powered by eventphone.de\n\n" ); //print syntax if( argCnt <= 1 ) { printf( "syntax: ./BlinkenConv <input-file> [<output-file>]\n\n" " - output files may be *.blm, *.bmm, *.bml, *.bbm\n\n" ); } //no movie loaded pMovie = NULL; //read movie if( argCnt >= 2 ) pMovie = BlinkenMovieLoad( args[1] ); //movie was loaded if( pMovie != NULL ) { //print movie if( argCnt <= 2 ) { str = BlinkenMovieToString( pMovie ); if( str != NULL ) { printf( "%s", str ); free( str ); } } //save movie if( argCnt >= 3 ) BlinkenMovieSave( pMovie, args[2] ); //free movie BlinkenMovieFree( pMovie ); pMovie = NULL; } return 0; }