So we have:
AL for audio,
GL for graphics,
CV for vision,
FFMPEG for encoding
But what library is as respectful, simple, intuitive as them for Network data streaming?
What I need is generally cross-platform (at least Win + Lin) C library with simple to use but quite deep API for TCP data transmitting, receiving.
...
I am trying to display currently running process in Ubuntu.
Right now I am using system() function to print running process in the terminal. Code:
system("ps -A");
This function displays all running process in the terminal.
But I want to this functionality using a POSIX function. I am not looking for a ready made code.
Can some on...
Possible Duplicate:
Where do I find the current C or C++ standard documents?
Where can I read C99 official language standard manual/reference/specification online?
...
Is there a way to draw a cube like this and as a result, only upload 8 verticies and 24 indicies to the graphics card? If so how could this be done?
Thanks
I currently do it like this:
boxdims.x = w;
boxdims.y = h;
boxdims.z = d;
center = c;
GLfloat vboverticies[72];
GLfloat vbonormals[18];
Vertex3f verticies[...
Hi, I opened a c file in Turbo C, the beginning of this c file looks like this:
#include <math.h>
#include <stdio.h>
#include "mex.h"
#include "matrix.h"
It uses some of the matlab structures and do something in c
I checked the directory and am sure that they are right. but when I tried to compile it, some errors here (I just copy s...
I have a file and a lot of process (and process threads) are accessing it.
I want to monitor the file to get a listing of what all processes tried to access the file. Being able to record the timestamps also would be excellent for logging purposes, though I can do without it.
Is there any Unix utility that does something similar?
In c...
signed int x= -5;
unsigned int y=x;
what is the value of y? and how?
...
I'm trying to detect whether I am running on a virtual environment (vmware, virtualbox, etc)
On Windows I've use several ASM but I can't use them in Linux, mainly because the code might be compiled and run on either 32 or 64 bit Linux.
The following code works on both Windows 32 and 64 and was tested on VMWare, virtualbox and other virt...
What function should I use to escape strings for shell command argument in C?
I have a string:
This is a string with () characters
This will be error:
echo This is a string with () characters
These are OK:
echo "This is a string with () characters"
echo This is a string with \(\) characters
Is there a predefined function convert ...
What is the purpose / advantage / difference of using
/* C89 compliant way to cast 'char' to 'unsigned char'. */
static inline unsigned char
to_uchar (char ch)
{
return ch;
}
versus a standard cast ?
Edit :
Found in a base64 code in gnulib
...
int x=0;
int A[50,100];
main() {
j=bin_search (*A , item, Nelem){
temp=0;
temp=Nelem/2;
if(Nelem==1)
return *x;
else (*x<item)
return bin_search(*x , item , temp)
else
return bin_search(*x+temp , item , temp)
...
Hi all,
Most architectures have a memory map where the user application grows towards
lower memory where the stack grows to the opposite direction. I am wondering what
is happening when I write such a big C-program that all the space for the application
and the is taken away, ie, that stack pointer and application try to write to the sa...
#include <stdio.h>
int main(void)
{
double resd = 0.000116;
long long resi = 0;
printf("%lld %f %lld %f\n", resd, resd, resi, resi);
return 0;
}
gives (Linux, gcc, x64)
0 0.000116 0 0.000116
^^^^^^^^ odd, since the memory for resi is zeroed
Actually, compiled with g++ it gives random r...
I am building a program which will multiply by 2, and reach long accurate numbers.
Here I build a program in which each digit is stored in a different variable.
When I compile the program, and I type 2^63, It gives me the correct answer.
But when I type 2^64, I get a “Segmentation fault”.
What is it? What can I do?
#include <stdio.h>...
I am trying to write a function in C that will shift out the individual bits of a byte based on a clock signal. So far I have come up with this...
void ShiftOutByte (char Data)
{
int Mask = 1;
int Bit = 0;
while(Bit < 8)
{
while(ClkPin == LOW);
DataPin = Data && Mask;
Mask = Mask * 2;
Bit+...
Looking at MSDN documentaion for GetTokenInformation() and the Getting the Logon SID example, GetTokenInformation() needs to be called twice. The first call is to get the buffer size.
So, buffer size of what? Just say I use TokenUser as its second parameter, I see that the dwReturnLength returned by first call is not the size of TOKEN_U...
Hi guys,
I'm trying to call MessageBoxA() directly in assembly, using gcc inline. However I need to do this in 2 ways: first is using dynamic addressing, with LoadLibrary() and GetProcAddress() - I found a tutorial about this, trying to follow it. But I'm also interested in calling directly the address of MessageBoxA, wich is 0x7e4507ea...
Google officially provides a C++ implementation of Google Protocol buffers,
but I'm looking for a C implementation.
I will not be using it myself, but my hope is that I can use this tool to generate
C code for our Google Protocol Buffer definitions which I can then hand of to the C developers.
I'm not looking for any RPC functionality,...
Hi,
I am new to android kernel and Mobile Operating Systems and I have a few questions regarding android kernel.
1) Does Android OS has Kernel Mode and a User mode like Normal desktop OSs ? Also does it support things like Virtual Memory ? Also I heard about Dalvik VMM. Is a copy of dalvik VMM created for each and every process ?
2) A...
I am running System Verilog inside of an ASIC simulator. SV has an import/export mechanism to call C functions from SV, and for SV functions to be called from within C.
I'd like to send realtime-ish (a very slow stream) data from the simulation to a charting program that I will write in Java. What is the best way to call the Java with...