aboutsummaryrefslogtreecommitdiff
path: root/plugins/style
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/style')
-rw-r--r--plugins/style/style.c31
1 files changed, 16 insertions, 15 deletions
diff --git a/plugins/style/style.c b/plugins/style/style.c
index 3aa5144..1010506 100644
--- a/plugins/style/style.c
+++ b/plugins/style/style.c
@@ -1,22 +1,23 @@
#include <stdio.h>
-#include <string.h>
#include <stdlib.h>
+#include <string.h>
#define STYLE_N 1393 + 1
-void read_style_js(char* string){
- FILE *fp=fopen("/home/loki/Documents/core/software/fresh/C/rose-browser/rosenrot/plugins/style/style.js", "r");
- if (!fp) { // fp is NULL, fopen failed
- fprintf(stderr, "Failed to open file\n");
- string=NULL;
- return;
- }
- int i=0;
- int c;
- while ((c = fgetc(fp)) != EOF){
- string[i++] = c;
- }
- string[i]='\0';
- fclose(fp);
+void read_style_js(char* string)
+{
+ FILE* fp = fopen("/home/loki/Documents/core/software/fresh/C/rose-browser/rosenrot/plugins/style/style.js", "r");
+ if (!fp) { // fp is NULL, fopen failed
+ fprintf(stderr, "Failed to open file\n");
+ string = NULL;
+ return;
+ }
+ int i = 0;
+ int c;
+ while ((c = fgetc(fp)) != EOF) {
+ string[i++] = c;
+ }
+ string[i] = '\0';
+ fclose(fp);
}
/*