#include <stdio.h>#include <sys/time.h>#include <sys/resource.h> int main (void){ struct rlimit limit; getrlimit (RLIMIT_STACK, &limit); printf ("\nStack Limit = %d and %d max\n", limit.rlim_cur, limit.rlim_max);}
Standard input is empty
cc1: warnings being treated as errors prog.c: In function ‘main’: prog.c:10: error: format ‘%d’ expects type ‘int’, but argument 2 has type ‘rlim_t’ prog.c:10: error: format ‘%d’ expects type ‘int’, but argument 3 has type ‘rlim_t’
Standard output is empty
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!