I wrote a good length of description on the below but somehow my browser closed without saving that. So I am just putting the program below:
#include <stdio.h>
#include <sys/types.h>
#include <dirent.h>
#include <string.h>
#include <gconf/gconf-client.h>
int main(int argc, char ** argv)
{
DIR *dp;
struct dirent ep;
char dirname[80];
GConfClient client;
int s;
if (argc<=1)
{
printf(”%d is argc\n”, argc);
fflush (stdout);
dp = opendir(”.”);
strcpy(dirname, ”.”);
}
else
{
dp = opendir(argv[1]);
strcpy(dirname, argv[1]);
}
if (argc <=2 )
s = 30;
else if ( argc >2 ) s = atoi(argv[2]);
//g_type_init();
client = gconf_client_get_default();
//client = gconf_client_get_for_engine (gconf_engine_get_default());
Continue reading