Description:
The C programming language. (Moderated)
|
|
|
Where is C language used mainly thes days?
|
| |
Hi, I am familiar with the syntax of C language but I dropped 'Intro to C" class when I was studying for CIS degree and took C++., and then later java. I am pursuing Cisco certification and want o equip myself in doing the programming part (using C) while also well-versed in out of the office work in the service arena of the industry in order to become valuable... more »
|
|
sockets: ntohl question
|
| |
Hello, I am aware of the need for ntohl and htonl. But floats? I am aware of Beej's (Brian "Beej Jorgensen" Hall) implementation: [link] Yet, I devised my own kludge: ------------------------ uint32_t data, data1; float num1; i =read(descriptor, (char *) &data, sizeof(uint32_t));... more »
|
|
A question about the part of a program
|
| |
HI~ guys~ I have a question about writing in a file using C. The part of the code is like this : How can I print out the value before and after i write it? (I mean the value of &DataTable) What is more, how these data are orgernized in the file? Why here is DataTable[i][j][0][0] there? Thank you very much~... more »
|
|
how to generate random char in C programming?
|
| |
Hello, I would like to know if there's a way to create random char in C programming. I've been searching all over the place and all the solution I found are only available for C++ for example: int n = rand() % 26; char c = (char)(n+65); cout << c << "\n"; return 0; Is it possible to do it in C programming? Thank you very much... more »
|
|
struct & enum & :: visibility operator
|
| |
Hi at all, I have a header file like this: -------- file.h ------------ .... extern "C" { ... typedef _S S; ... struct _S { ... enum { a, b }myenum; ... }; ...--------- end of file.h ------------- and a C file like this... more »
|
|
Wrong ACS_HLINE in ncurses-program on Televideo tvi 990
|
| |
Hello, I have a problem with horizontal Lines in a ncurses program by using it on a Televideo Model 990, under using it on my PC with Putty I've got no problems. The error is only showing under Solaris, under Suse Linux it works fine. Here's my configuration: - SunOS 5.6 Generic_105181-11 sun4u sparc SUNW,Ultra-1... more »
|
|
about stderror
|
| |
I am using ubuntu 8.04. I wrote a small program to try stderror. === ...int main() { printf("%d\n", errno); printf("%s\n", stderror(errno)); return 0; ...=== But it always says gcc test.c /tmp/ccojpACa.o: In function `main': test.c:(.text+0x33): undefined reference to `stderror'... more »
|
|
Running (invoking) a windows cmd command within C code
|
| |
Hello all, I searched both the web and a couple usenet groups before posting this here. I am not proficient in C, I am just fooling around. I need to find a way to invoke a windows cmd command, namely shutdown, from within a C program. I could only find stuff regarding C# or other languages.. In case you 're wondering, I frequently used to leave internet radio... more »
|
|
How to replace this switch with preprocessor code
|
| |
Hi, I am working on a switch module which after reading voltage through a port pin and caterogizing it into three ranges(open,low or high), passes this range to a function switch_status() with parameters value and signal ID. Signal Id is used to get a user configurable parameter inside a configuration file, which depends on the type of switch.... more »
|
|
|