This file contains 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 <string.h> | |
#include "btree.h" | |
static int btree_read_disk(btree *tree, int seek, btree_node *node) | |
{ | |
if(fseek(tree->fp, seek, SEEK_SET) == -1) | |
return BTREE_ERR; | |
char *read_buf = calloc(1, sizeof(btree_node)); |
This file contains 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 "calculator.h" | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <string.h> | |
GtkWidget *entry; | |
int first_number = -1; | |
int second_number = -1; | |
char symbol = '+'; | |
int need_clear = 0; | |
int has_press_symbol = 0; |
This file contains 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 "rbtree.h" | |
rbtree_node *NIL; | |
int main() | |
{ | |
NIL = (rbtree_node*)calloc(1, sizeof(rbtree_node)); | |
if(NIL == NULL) | |
exit(0); | |
NIL->color = BLACK; |