C (pronounced like the letter C) is a general-purpose computer programming language developed between 1969 and 1973 by Dennis Ritchie at the Bell Telephone Laboratories for use with the Unix operating system. Although C was designed for implementing system software, it is also widely used for ...
-1
votes
0answers
4 views
ceate database in c language using file operation
i have created database using file operation.
there is no issue on this code. i have post this code for only our reference.
if u have any query on this code then post the comment..
this data base ...
0
votes
1answer
4 views
How to include hdf5 header files in a C program on Mac OS X?
I am trying to learn how to program in C, and I want to be able to import data into my C program from a .hdf file.
I am using a mid 2009 MacBook Pro with Mac OS X lion.
I think I am having ...
6
votes
0answers
35 views
return struct from function
I have some simple code:
struct s {
char str[128];
};
struct s foo()
{
struct s s = { "some string" };
return s;
}
int main()
{
printf("%s\n", foo().str);
return 0;
}
but it's ...
0
votes
0answers
8 views
Porting and openMp program to cuda c: correct grid_size/block_size and reduction
I want to convert an openMP program to cuda c.
I try to find my way on the web and the sdk. But the material is beyond my level.
My c program loop over n=2^30 index and add the weight of each index. ...
1
vote
0answers
9 views
Xcode 4 plain C static library linking
I would like to build a plain C console app in Xcode. I have 5 source files added to a project and a library, say libMyLib.a. The C source files obviously use the library. I can't get this to work, ...
0
votes
0answers
4 views
How to Authenticate to DailyMotion using objective c SDK?
Is there any API support or objective-C framework for Dailymotion to handle: 1. Authenticate an user 2. Retrieve logged-in user's videos
3. - (void)request:(NSString *)path withArguments:(NSDictionary ...
0
votes
0answers
6 views
Decrypt WEP wlan profile key using CryptUnprotectData
I am trying to decrypt WEP profile's key using CryptUnprotectData. The way I fetched the profile key is by exporting the profile using netsh.
netsh wlan export profile name="MyWEP" folder="./"
For ...
0
votes
2answers
10 views
Undefined references when compiling gSOAP client
I'm trying to create a client for a web service in C. I was generated C files with the wsdl2h and soapcpp2. In netbeans I'm added the generated files and the gSOAP include dir to the project's include ...
1
vote
1answer
33 views
Is there any tool which can show data dependencies within a function
I have this kind of code. What I'm interested in is to find the data dependencies between the loops, so that I can guess If I can run the loops in parallel. Is there any tool which can help me with ...
0
votes
1answer
24 views
Compile C program using dlopen and dlsym with -fPIC
I am having a problem about a wrong symbol resolution. My main program loads a shared library with dlopen and a symbol from it with dlsym. Both the program and the library are written in C.
Library ...
1
vote
0answers
40 views
Writing to specific memory location in B
In C, you can write something like unsigned char *ptr = (unsigned char *)0x8000;, and then write to 0x8000 with *ptr = 0x43;.
My question is: how can this be done in B?
-2
votes
2answers
38 views
C behavior with pointer addition
Given:
int a[N];
int *p;
why does a-p work yet a+p does not with error: "invalid operands to binary +".
-1
votes
1answer
17 views
redirect file to the program execute by execv()?
I'm writing a C program where I fork() read a file in parent and pass to child via a pipe, then in child redirect the file receive from the pipe to the program I want to execv,
For example, if I ...
-1
votes
3answers
36 views
C pragram - Structure marked as undeclared in compiler
I am trying to write a program to collect security information about a file and convert it to human readable information. However, I am facing a problem with initializing a pointer to structure:
...
1
vote
0answers
22 views
Android NDK: compiling fuse-zip library for Android application
I need important information to me: is it possible to compile the fuse-zip library with Android NDK (native C code) so to call it from an Android Java app?
My main concerns are:
Will it compile?
...