From: ballsystemlord <doark@mail.com>
To: gcc-help@gcc.gnu.org
Subject: Re: trouble using glob and wordexp
Date: Mon, 10 Jun 2013 18:02:00 -0000 [thread overview]
Message-ID: <1370887333505-945122.post@n5.nabble.com> (raw)
In-Reply-To: <1370886415956-945114.post@n5.nabble.com>
Here's the code
#include <glob.h>
#include <wordexp.h>
#include "my-header.h"
//my-header.h brings in just a few headers like stdio.h and defines some
strucs I will be using.
/*This should eventually be called
sruct metadata filefinder(struct swches s, unsigned short int fileno, stop)
GLOB_NOMAGIC | GLOB_NOSORT | GLOB_NOESCAPE*/
struct metadata
{
unsigned short int stop;
unsigned char *file;
unsigned short int size;
unsigned char *name;
unsigned char *permissions;
//Format mmddyyyy
unsigned short int date;
//If applicable
unsigned char *directory;
unsigned short int itemsindir;
};
int main(void)
{
char a[6] = "hello";
char *char1 = a;
struct glob_t globulation;
//struct wordexp_t wordomatic;
/*int errfunc(const char *filename, int errorcode)
{
return('\0');
}
int check = glob(char1, GLOB_NOMAGIC | GLOB_NOSORT | GLOB_NOESCAPE,\
&errfunc, globulation);*/
//int check = wordexp(char1, wordomatic, WRDE_UNDEF);
if (check != 0)
{
return(1);
}
return(0);
}
--
View this message in context: http://gcc.1065356.n5.nabble.com/trouble-using-glob-and-wordexp-tp945091p945122.html
Sent from the gcc - Help mailing list archive at Nabble.com.
next prev parent reply other threads:[~2013-06-10 18:02 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-10 15:59 ballsystemlord
2013-06-10 16:13 ` Jonathan Wakely
2013-06-10 17:47 ` ballsystemlord
2013-06-10 18:02 ` ballsystemlord [this message]
2013-06-10 22:09 ` Ian Lance Taylor
2013-06-18 16:47 ` ballsystemlord
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1370887333505-945122.post@n5.nabble.com \
--to=doark@mail.com \
--cc=gcc-help@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).