Hi I've seen this around and I'm not sure what it is for. I've seen it in other projects and it compiles fine but when I tried:
file_chooser_directory = gtk_file_chooser_button_new (_("Select a...
Type: Posts; User: redruby147
Hi I've seen this around and I'm not sure what it is for. I've seen it in other projects and it compiles fine but when I tried:
file_chooser_directory = gtk_file_chooser_button_new (_("Select a...
I've been using gtk and was wondering how images are put into executables so that it's self contained rather than referencing an image from a different location.
For example, how would this icon be...
I trespassed and it looks like I got shot! Allocated some memory for it and it's working now, thanks for the help. Yes the indentation is terrible, but it's fixed now.
Are you sure that would be the problem Salem? It's just that there's quite a bit of free memory.
total used free shared buffers cached
Mem: ...
Well it has a segmentation fault with sprinf, I've also tried printing out file_from_dir and dir_to_conv and they hold what they're supposed to.
Hi, I'm trying to make a program to list files in a dir specified by a user, find all video files with magic and convert them so that the psp will play them. However I'm trying to pass the directory...
It should work if you run it at command line (wherever that is on windows 7) and give it a text file. For example:
$ ./loop.o < oof.txt
8
Oh dear, confusing variable names! Revisions have been made. And the warning messages have disappeared. I'm not sure how placing a const int or a macro would create create such a difference when...
I'm not sure why this code is giving the error message "warning: excess elements in array initializer". I've taken a look at:
http://www.csc.liv.ac.uk/~grant/Teaching/COMP205/string.html
and...
Thanks, spawn seems to be what I'm looking for. I wrote this and i'm recieving error code -1, the file paths are relative, and all the files are in the correct location. Any ideas why it's giving...
Is there any way to remove the command line after execution. For example, if you use the system function to invoke another program, the cmd is left in the background blank. Is there a function like...
I'm not sure how to deal with file paths when programming in windows. Here is my attempt thus far.
#include <stdio.h>
#include <stdlib.h>
char eclipse[150];
int main()
{
Still receiving the same error as before :(
make: *** No rule to make target `spe_example_csf.o', needed by `example'. Stop.
Hi , i'm not sure how to put this into a Makefile
spu-gcc-4.3 spe_example.c -o spe_example;
embedspu test_handle spe_example spe_example_csf.o;
gcc ppe_example.c spe_example_csf.o -lspe2 -o...
Hi, I've seen cases where people benchmark their programs, for example at the bottom of this page the author highlights the effect of copying strings in different ways and the effect on execution...
Practical C by Steve Oualline. I'm quite fond of this book as it emphasizes good writing style and maintainable code. It also highlights how some needlessly compact their code and/or use cryptic...
Ah great, that worked really well. Done them all now, thanks again
Great, thanks people, imagemagick worked perfectly, i used
chii:~/Desktop/Stimuli$convert hab14d1_007.bmp -fill blue -opaque white hab14d1_007done.gmpwhich did the job. I'm tempted to just put...
Hi, i have 2300 bitmap images very similar to this one
http://mage.me.uk/files/hab12d1_001.bmp
and what i basically need to do is change every white pixel in the image to blue. I haven't...
Solved, i stumbled upon this
C: How can I split a number into digits? - Yahoo! Answers
and then did this
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Say you have the argument to main in the form of ./program 447 758. How would the separation of those two numbers into integers be done for example to gain the result of.
first_num[0] = 4;...
Thanks, so would argv[1][i]; turn the string into an integer, I'm not entirely sure what that does. I modified the code:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define MAX...
What is the best method to do this? This is my attempt, which failed by the way :(.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define MAX 5
int main (int argc, char...
Thanks for the feedback and code :D. But the program only allows up to 8 digits.
print_binary(x, 8);
And if increased there are a lot of preceding zeros. I know it may be a bit over the top...
I thought it was allocated when i allocated the entire structure.
n = (struct numbers *) malloc (sizeof(struct numbers));