Created
October 6, 2011 17:03
-
-
Save delbertooo/1267966 to your computer and use it in GitHub Desktop.
Simple program using libspirit
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 <stdio.h> | |
#include <stdlib.h> | |
#include <libspirit/spirit_news.h> | |
#include <libspirit/spirit_error.h> | |
int main(void) { | |
SPIRIT *spirit_handle; | |
SPIRITcode res; | |
spirit_handle = spirit_init("https://spirit.fh-schmalkalden.de/"); | |
res = spirit_news_print_all(spirit_handle); | |
printf("\n\tSPIRIT RESULT %i: %s\n", res, spirit_errstring(res)); | |
spirit_cleanup(spirit_handle); | |
return EXIT_SUCCESS; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment