Output is often buffered by the system. You can call fflush, but sometimes, depending on how the caching works, simply ending the output with a newline is sufficient. So try changing
fprintf(stdout, "STARTED!");
to
fprintf(stdout, "STARTED!\n");
And, if that doesn’t help, to
fprintf(stdout, "STARTED!\n"); fflush(stdout)
(And stderr often isn’t cached, as you want to see errors immediately.)
Finally, you will see output when the program finishes (as things are flushed then), which probably explains the rest of the behaviour.
Related Posts:
- How to display hexadecimal numbers in C?
- How many spaces for tab character(\t)?
- Correct format specifier for double in printf
- Compiler Error “void value not ignored as it ought to be” in C programming [duplicate]
- Scanf/Printf double variable C
- C compiler for Windows?
- Why the range of int is -32768 to 32767?
- max value of integer
- Strings and character with printf
- Bad File Descriptor with Linux Socket write() Bad File Descriptor C
- printf() formatting for hexadecimal
- Printing hexadecimal characters in C
- What is the argument for printf that formats a long?
- What is the printf format specifier for bool?
- How to printf “unsigned long” in C?
- How I can print to stderr in C?
- Is there a printf converter to print in binary format?
- What’s the difference between a file descriptor and file pointer?
- What does “%.*s” mean in printf?
- How to print a char array in C through printf?
- c array – warning: format not a string literal
- How to printf a memory address in C
- Data argument not used by format strings in C
- How can one print a size_t variable portably using the printf family?
- %i or %d to print integer in C using printf()?
- How can you print multiple variables inside a string using printf?
- error: aggregate value used where an integer was expected
- How to print an unsigned char in C?
- Valgrind Invalid free() / delete / delete[] / realloc() in C
- Is there a way to have printf() properly print out an array (of floats, say)?
- error: unknown type name ‘bool’
- How do you allow spaces to be entered using scanf?
- How to write to a file using open() and printf()?
- Using floats with sprintf() in embedded C
- Printf width specifier to maintain precision of floating-point value
- Which of sprintf/snprintf is more secure?
- Does C have a string type?
- Execution of printf() and Segmentation Fault
- printf format specifiers for uint32_t and size_t
- How to repeat a char using printf?
- Representing EOF in C code?
- Two decimal places using printf( )
- How do you format an unsigned long long int using printf?
- What primitive data type is time_t? [duplicate]
- Reading float using scanf in c
- How to format strings using printf() to get equal length in the output
- Reading float using scanf in c
- How to format strings using printf() to get equal length in the output
- What do \t and \b do?
- write() to stdout and printf output not interleaved?
- Example of realpath function in C
- How to print a int64_t type in C
- How to use symbols of extended ASCII table in C?
- Python Math – TypeError: ‘NoneType’ object is not subscriptable
- TCP vs UDP – What is a TCP connection? [duplicate]
- ssh : Permission denied (publickey,gssapi-with-mic)
- Arrow operator (->) usage in C
- typedef struct vs struct definitions [duplicate]
- Error in “MLSD” command While Connecting FTP to Server [closed]
- Floating point exception( core dump
- Java default constructor
- How to go from fopen to fopen_s
- Write to .txt file?
- XPath contains(text(),’some string’) doesn’t work when used with node with more than one Text subnode
- Transport endpoint is not connected
- How do I correctly clean up a Python object?
- Try catch statements in C
- spring @sqlgroup with multiple datasource
- How do I create an array of strings in C?
- wait(null) and wait(&status) C language and Status
- printf with std::string?
- Python ? (conditional/ternary) operator for assignments
- How do you pass a function as a parameter in C?
- C++ array assign error: invalid array assignment
- Android java.lang.IllegalStateException: Could not execute method of the activity
- “…redeclared as different kind of symbol”?
- too many arguments for format [-Wformat-extra-args]
- NoClassDefFoundError in Java: com/google/common/base/Function
- Where are the ampersand and vertical bar characters used in Python?
- error C2371: ‘functionname’ redefinition: different basic types
- configure: error: cannot run C compiled programs
- Which font is used in MS-DOS?
- note: previous implicit declaration of ‘point_forward’ was here
- Google Gmail – “The conversation that you requested could not be loaded”
- char array not assignable
- Warning: comparison of distinct pointer types
- getline() vs. fgets(): Control memory allocation
- Library for the Basic Data Structures, such as Queue, in C
- stack around the variable…was corrupted
- Empty functions in Javascript
- %p Format specifier in c
- Solr: how to delete a collection?
- Convert Char to String in C
- How to store data in the flash memory of a Arduino Uno (ATmega328p)
- What is a blob URL and why it is used?
- TwentyTwentyTwo – How to add PHP logic to Post templates?
- Maintenance holding page while migrating website
- How to get a current post’s blog id
- Will has_category be true is used on index and one of queried posts has the category?
- Exclude categories with only sticky posts OR count sticky post of specific category