15 lines
278 B
C
Raw Normal View History

2025-03-22 03:15:49 +01:00
#include "browse.h"
int main() {
2025-03-28 06:56:36 +01:00
char *query = "example";
char *result = get_news(query);
2025-03-22 03:15:49 +01:00
2025-03-28 06:56:36 +01:00
if (result) {
printf("Result: %s\n", result);
free(result); // Free the allocated memory for the result
} else {
printf("Failed to fetch news.\n");
}
return 0;
2025-03-22 03:15:49 +01:00
}