c89
C89: getaddrinfo() on Windows?
I\'m new to C89, and trying to do some socket programming: void get(char *url) { struct addrinfo *result;[详细]
2022-12-21 10:19 分类:问答C: Trouble with Strings
I am new to C89, and don\'t really understand how strings work. I am developing on Windows 7. Here is what I am trying to do, in Java:[详细]
2022-12-21 10:13 分类:问答Portable user defined character class division in C89 by a lookup table, would you do this?
static const int class[UCHAR_MAX] = { [(unsigned char)\'a\'] = LOWER, /*macro value classifying the characters*/[详细]
2022-12-19 12:50 分类:问答Assertions in C89?
I\'m writing C89 on MSFT Visual Studio 2010 Beta. How can I make an assertion, similar to Java\'s assert keyword? I think I need to define a macro, but I\'m not sure how. (It seems like this is someth[详细]
2022-12-19 07:40 分类:问答Mysql connection in Ansi c
I am working in Ansi C, windows 开发者_开发知识库platform. I want to attach mysql database to my c program. Kindly guide me how I can make it possible.Here is a working example which sets up a connect[详细]
2022-12-17 05:37 分类:问答Sending Data to particular IP in windows OS using ANSI C
I want to send data or packets at particular IP address using ANSI C s开发者_开发百科tandard so that my code will be platform independent. How is it possible in windows OS without using windows librar[详细]
2022-12-14 21:03 分类:问答Printing out hex values of a char* array in C gives odd values for binary input
Here\'s an odd problem that\'s been stumping me for a bit. The program is written in C89, and it reads a file into a char* array 16 bytes at a time (using fread and a size of sizeof(char)). The file[详细]
2022-12-11 21:42 分类:问答Dynamic memory allocation on stack
I recently tried this experiment in which instead of going for dynamic memory allocation for memory requirements of unknown size, I did a static allocation. When an array a[i] was declared by me, I ke[详细]
2022-12-10 17:40 分类:问答Unbuffered I/O in ANSI C
For the sake of education, and programming practice, I\'d like to write a simple library that can handle raw keyboard input, and output to the terminal in \'real time\'.[详细]
2022-12-10 00:20 分类:问答