Are argc, argv local to main
Hello All,
I need to convert YUV420 to RGB format.
I have Y ( 264*60 bytes) Data, U ( 264*60/4 byes) Data, V ( 264*60/4 byes) Data
unsigned char *Y_DATA;
unsigned char *U_DATA;
unsi...
How can you clear a character string in C?
Equivalent C++ code would be:
string mystring = "";
How can I convert a number to its ascii character? and do the other way round?
eg) 'a' = 97
given 'a', I want to get 97
similarly, given 98, I wanna get 'b'
Does anyone have a small program that given a MAC Address, can go out and find the corresponding IP address
if it exists on the network. If not, can you point me in the right direction about...
I know there is no ANSI C way to get elasped milliseconds or microseconds, but how can you do this with GNU C?
The struct timeval seems to have a facility to represent microseconds, but I'm...
I just recently found out about POSIX semaphores. POSIX semaphores are a way to synchronize access to shared resources between multiple processes. Supposedly, they are superior to traditiona...
I want t beable to use the batch file "ERRORLEVEL" based on the return value of my program.
My program looks something like this:
int main(void)
{
If (x == TRUE)
return 1...
A configuration file consists of sections and entries. Each section is defined inside a "[]", and each entry is delimited by an "=" sign. The value of each entry can be either string or an int...
What is the difference between macros and inline functions ?
Thanks !
when I compile my program with gcc -Wall -o fn filename.c
it compiles okay, but I am getting a warning.
It says warning: implicit declaration of function `exit'
What exactly does this ...
Howdy
I have the following code:
int nprocs;
int ByteNum, Allocation, startpoint;
struct stat num;
FILE *file;
int *Numbers;
int **ProcSort;
int *ProcAlloc;
int main()
{
...
Guys, How to convert Float to Ascii Char string. Please don't say use ftoa() or gcvt() because my complier cannot support all the libreay function. If any one who write the C function please s...
In C,
In the code below, I just want to be 100% sure that I understand the difference between statements (A) and (B):
void try_this(char *p, char *q)
{
const char* constptr = p; //...
how can i simulate in unix c the command ls | more ??
I need pure code and not code containing system calls
I need to open an excel file and then read each row of the file, how do I do this?
hi here is my code
#include<stdlib.h>
#include<pthread.h>
#include<string.h>
#include<stdio.h>
struct info{
int id;
char name[20];
int port;
};
...
I want to get a handle on these win32 stuff. I understand that in stdcall the function clean up the stack before returning. cdecl the caller clean up the stack? what about the declspec and t...
I had set socket buffer like this..
buf_size =16*1024;
err = setsockopt( m_hSock, SOL_SOCKET, SO_SNDBUF, (char *)&buf_size, sizeof(buf_size));
Everything ok while sending data to clie...
Pl tell me how to convert an integer value to a character string. I tried the itoa function, but it is not in my stdlib.h so gives error while compiling. Does anyone have an alternate....or gu...
I have a binary file and I want the same to convert into ASCII format with symbols,i,e in a readable format.Please tell me the steps to follow....
1) How can I read a binary file which cont...
when I edit any c program in turbo c 2.0 ,these program can be successfully complied but can't be linked . It display "link error:Unable to open input file 'COS.OBJ'".why?even like the flowing...
How do you capture WM_KEYDOWN in an edit control in win9x platform.I'm using a edit control in a window and i should be able to capture when user presses ENTER key in the edit control.
Thnx...
double **p;
.. ... .
... . ..
p= (double *) malloc(sizeof(double) * ( m*n)) ;
... ..
for ( i .... .. .
for ( j ......
*(*(p+i)+j)++;
}
}
it is ...
I have a program in C language for transferring files from one computer to another using RS232 serial cable, but i don't have an idea on how it works and what concept is behind it, can i be ex...