should be 0, C functions must return ints or doubles, not js types