[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freebsd-questions
Subject:    how to grab text w/ fcanf
From:       Gary Kline <kline () thought ! org>
Date:       2014-07-31 23:33:35
Message-ID: 20140731233335.GA24151 () ethic ! thought ! org
[Download RAW message or body]

=====
Organization: Thought Unlimited.  Public service Unix since 1986.
Of_Interest: With 28 years  of service  to the  Unix  community.

	guys,

	need some insight before I lose it {completely}.

	I've got a *.c file that returns in [let's say]

		/tmp/share/voice

	a bunch of files named:  "text.1.txt", "text.2.txt",
	"text.3.txt" ... text.N-1.txt", each file containing a few
	sentences of plain ol' ASCII or [whatever] text.

	what is the easiest way, in C, *knowing the count=N*, to
	grab the *text files and stuff the paragraphs into a global
	buffer:	char *parabuffer[1024]; ??

	I'll usr the parabuffer strings in a GTK+ 3.0 window.  (note 
	that I've already figured out how to display the paragraphs in
	window "label" widgets that are left-justified.  

	tia, y'all,

	gary


-- 
 Gary Kline  kline@thought.org  http://www.thought.org  Public Service Unix
             Twenty-eight years of service to the Unix community.


_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic