c89
C check if file exists
In a project I have to do in C89 standard I have to check if a file exists. How do I do this? I thought of using[详细]
2023-02-27 09:24 分类:问答failing to dump the input file reversed
I want to reverse the contents of the input file and display the reversed contents, but I am not getting it; i think I have made a logic error.[详细]
2023-02-26 19:08 分类:问答How to rewrite C-struct designated initializers to C89 (resp MSVC C compiler)
guys, I\'ve this problem: Normally in C99 GCC (cygwin / MinGW / linux), there is dot-notation syntax for initializers in C struct.[详细]
2023-02-19 16:55 分类:问答Enabling VLAs (variable length arrays) in MS Visual C++?
How can I enable the use of VLAs, variable length arrays as defined in C99, in MS Visual C++ or that is not possible at all?[详细]
2023-02-15 15:17 分类:问答Using M_PI with C89 standard
I\'m using C and trying to get access to the constant M_PI (3.14159...). I have imported the math.h header file, but the M_PI constant was still undefined开发者_运维问答. Through some searching on Sta[详细]
2023-02-11 09:52 分类:问答How to allocate variable size array in C90?
Ineed to allocate a varibale size for SYMBOLs, typedef int SYMBOL I did in following way SYMBOL test[nc], herencis an integer. But开发者_StackOverflow中文版 this gives me following warning:[详细]
2023-02-11 09:41 分类:问答Doesn't ANSI C allow printing each character at a same place after a fixed time period?
I am trying to generate random numbers to be printed on the console. I am programming in C on Linux. I wanted to print all the numbers at a single place after a time interval of a second for each numb[详细]
2023-02-11 08:00 分类:问答strtod with base parameter
I don\'t want to unnecessarily re-invent the wheel, but I have been looking for th开发者_StackOverflow中文版e functionality of strtod but with a base parameter (2,8,10,16).(I know strtoul allows a bas[详细]
2023-02-10 07:14 分类:问答Formatting input (removing leading zeros and decimal places) in C90?
#include <stdio.h> int intVal(int x) { if(x < \'0\' || x > \'9\'){ return 0; } else{ x = x - \'0\';[详细]
2023-02-08 09:22 分类:问答Getting the warning " ISO C90 forbids variable-size array" in gcc compiler while compiling C90 code
I am compiling my C90 c code in gcc . I am getting the warningISO C90 forbids variable-size array while making the declaration like[详细]
2023-02-06 01:41 分类:问答