#include #include #include #include int main (int argc, char **argv) { struct sass_file_context *ctx = sass_new_file_context(); ctx->input_path = argv[1]; sass_compile_file(ctx); if (ctx->error_status) { if (ctx->error_message) { fprintf(stderr,"%s\n", ctx->error_message); } else { fprintf(stderr,"An error occured; no error message available\n"); } return 1; } else if (ctx->output_string) { fprintf(stdout, "%s", ctx->output_string); } sass_free_file_context(ctx); return 0; }