betaur.c (456B)
1 #include <stdio.h> 2 #include <string.h> 3 #include <assert.h> 4 5 #include "dependency.h" 6 #include "aur/request.h" 7 8 int main(int argc, char* argv[]) { 9 char* metadata_str = "pacman <= 0.2"; 10 11 betaur_dependency_t* dep = betaur_dependency_create(strlen(metadata_str), metadata_str); 12 assert(dep != NULL); 13 printf("%.*s$\n", dep->name_len, dep->name); 14 printf("%.*s$\n", dep->version_len, dep->version); 15 16 betaur_http_search(BETAUR_NAME, 6, "pacman"); 17 return 0; 18 }