Skip to content

Commit

Permalink
Don't use stdbool.
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosbrando committed Dec 15, 2011
1 parent 67f1626 commit 2637657
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions spark.c
Expand Up @@ -2,11 +2,10 @@
#include <stdlib.h>
#include <limits.h>
#include <string.h>
#include <stdbool.h>

typedef unsigned int LOOP_COUNTER;

bool received_bash_pipe(void);
int received_bash_pipe(void);
int *split_string(char *string);
char *remove_unwanted_characters(char *string);
char *join_arguments(char *arguments[], int count);
Expand Down Expand Up @@ -54,15 +53,15 @@ int main(int argc, char *argv[]) {
}

/* Check if values were received via bash pipe */
bool received_bash_pipe(void) {
int received_bash_pipe(void) {
long size;

/* obtain file size: */
fseek(stdin, 0, SEEK_END);
size = ftell(stdin);
rewind(stdin);

return size != 0 ? true : false;
return size != 0 ? 1 : 0;
}

/* Join all parameters into a single string to enable
Expand Down

0 comments on commit 2637657

Please sign in to comment.