Search Results

Search: Posts Made By: james2432
Forum: Programming 12-22-2010
1,672
Posted By james2432
Best practice for make files?
I currently have two projects, one being a shared library and the other an application
The problem I am facing is that I need to compile and install the library then run an ldconfig before...
Forum: Programming 02-20-2010
5,482
Posted By james2432
thank you for this, I didn't know how to proceed...
thank you for this, I didn't know how to proceed on getting multibyte chars :) the masks are a good thing 2 know
Forum: Programming 02-19-2010
5,482
Posted By james2432
[SOLVED] Unicode filenames in C++?
I'm trying to figure out how to support Unicode or atleast an unsigned char in the d_name of struct dirent

The problem i'm facing is that I'm checking file names for special characters and...
Forum: Programming 12-16-2009
11,145
Posted By james2432
Makefile shared library g++
I'm having trouble with my makefile, I'm trying to code a shared library to be used by another program

*EDIT* Found the solution:

CC = g++
MODULES= readconfig.o ReadConfigLib.o
OBJECTS=...
Forum: Programming 10-14-2009
28,496
Posted By james2432
The thing is I'm creating a daemon to check that...
The thing is I'm creating a daemon to check that certain applications are running(via PID) I do not initially launch them(so they are not my children) and I don't really feel like trying to kill...
Forum: Programming 10-14-2009
28,496
Posted By james2432
[SOLVED] C - WEXITSTATUS() question
I want to check if an application is still running under C. So far I've been using

int rc;
rc=WEXITSTATUS( [PID here] )

if(rc > 0)
{
//then I exited
}
I was wondering seeing as...
Forum: Programming 08-21-2009
1,872
Posted By james2432
Yeah I meant <cstdio> sorry, I made a typo....
Yeah I meant <cstdio> sorry, I made a typo. Thanks for this it looks pretty interesting
Forum: Programming 08-20-2009
1,872
Posted By james2432
Multi-platform includes?
I know that <cstudio> can also be <stdio> and can be written different ways on Linux then with windows.

I've see some code doing a IFDEF __APPLE__ (I'm guessing, if compiled on a mac do whats...
Forum: Programming 06-16-2009
3,952
Posted By james2432
Default kernel of ubuntu 9.04 I386 Archetechure
Default kernel of ubuntu 9.04
I386 Archetechure
Forum: Programming 06-12-2009
3,952
Posted By james2432
2 Problems: Segfault on ctrl+c and syslog() prob
1. Even if i have the handles for ctrl+c it gives off a segfault
2. syslog doesn't log LOG_ERR event with log masked specified or non specified, it logs LOG_WARNING however...


#include...
Forum: Programming 04-13-2009
5,522
Posted By james2432
oh I see, so if you want an array with a dynamic...
oh I see, so if you want an array with a dynamic size you have to use pointers where as the other one is done on compile time.

Thanks for the insightful information :) I <3 c-type langs :)
Forum: Programming 04-13-2009
5,522
Posted By james2432
would you have to free(string) after? you...
would you have to free(string) after?

you would have to free(string) here no matter what right?
Forum: Programming 04-13-2009
5,522
Posted By james2432
so it's essentially only if you want to reserve a...
so it's essentially only if you want to reserve a segment of memory(to assure that it's always there) and to access via pointer later(not that I like using pointers)?

So the int would be freed...
Forum: Programming 04-13-2009
5,522
Posted By james2432
so if I do say int test; should I...
so if I do say

int test;


should I have a?

free(test);


or is it for when you create pointers?

malloc(*pointer);


and how would you go about disposing of the freed memory, it's...
Forum: Programming 04-13-2009
5,522
Posted By james2432
C - Freeing resources
I was wondering what is the function in C to free a resource(usually a variable)

I know in C# there a Garbage collector, but in c and C++ there are none.
I believe in c++ the function is...
Forum: Programming 04-09-2009
2,784
Posted By james2432
Thanks for the help i was tired(i program all day...
Thanks for the help i was tired(i program all day long) and facepalmed when you mentioned the %d for decimal... i should have known

everything is sort of working mplayer never quits now :P

...
Forum: Programming 04-08-2009
2,784
Posted By james2432
while(1){ int rc; ...
while(1){
int rc;
rc=system("ps ux | awk '/mplayer/ && !/awk/ {print $2}'");
rc = WEXITSTATUS(rc); /* Check if mplayer is running */
printf("I was...
Forum: Programming 04-08-2009
2,784
Posted By james2432
while(1){ int rc; ...
while(1){
int rc;
rc=system("ps ux | awk '/mplayer/ && !/awk/ {print $2}'");
rc = WEXITSTATUS(rc); /* Check if mplayer is running */
if(rc > 0 ){
...
Forum: Programming 04-08-2009
2,784
Posted By james2432
Help with task daemon
believe it or not but this is my first c program (i've worked with java, C#, php though) I am trying to make a daemon that checks if mplayer is running(it's for a projection room) and if it is not...
Showing results 1 to 19 of 19

 
All times are GMT -4. The time now is 05:38 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy