Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

xmstringgetnextsegment(3x) [osf1 man page]

XmStringGetNextSegment(3X)												XmStringGetNextSegment(3X)

NAME
XmStringGetNextSegment - A compound string function that fetches the octets in the next segment of a compound string SYNOPSIS
#include <Xm/Xm.h> Boolean XmStringGetNextSegment (context, text, tag, direction, separator) XmStringContext context; char **text; XmStringCharSet *tag; XmStringDirection *direction; Boolean *separator; DESCRIPTION
XmStringGetNextSegment fetches the octets in the next segment; repeated calls fetch sequential segments. The text, tag, and direction of the fetched segment are returned each time. A Boolean status is returned to indicate whether a valid segment was successfully parsed. Specifies the string context structure which was allocated by the XmStringInitContext function. Specifies a pointer to a null terminated string. Specifies a pointer to the font list element tag associated with the text. Specifies a pointer to the direction of the text. Specifies whether the next component of the compound string is a separator. RETURN VALUE
Returns True if a valid segment is found. SEE ALSO
XmStringCreate(3X), XmStringInitContext(3X) XmStringGetNextSegment(3X)

Check Out this Related Man Page

XmStringGetNextSegment(library call)									      XmStringGetNextSegment(library call)

NAME
XmStringGetNextSegment -- A compound string function that fetches the bytes in the next segment of a compound string SYNOPSIS
#include <Xm/Xm.h> Boolean XmStringGetNextSegment( XmStringContext context, char **text, XmStringTag *tag, XmStringDirection *direction, Boolean *separator); DESCRIPTION
This routine is obsolete and exists for compatibility with previous releases. To read the contents of a compound string, read each compo- nent of the string with XmStringGetNextTriple. This XmString function returns the type, length, and value of the next component in the com- pound string. XmStringGetNextSegment fetches the bytes in the next segment; repeated calls fetch sequential segments. The text, tag, and direction of the fetched segment are returned each time. A Boolean status is returned to indicate whether a valid segment was successfully parsed. If the function returns True, then the function allocates space to hold the returned text and tag. The application is responsible for man- aging the allocated space. The application can recover the allocated space by calling XtFree. context Specifies the string context structure which was allocated by the XmStringInitContext function text Specifies a pointer to a NULL-terminated string tag Specifies a pointer to the font list element tag associated with the text direction Specifies a pointer to the direction of the text separator Specifies whether the next component of the compound string is a separator RETURN
Returns True if a valid segment is found. RELATED
XmStringCreate(3) and XmStringInitContext(3). XmStringGetNextSegment(library call)
Man Page

7 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

String Manipulation

Hi, Suppose I have the following text in a file. ORA-00942: table or view does not exist ORA-01555: snapshot too old: rollback segment number string with name "string" too small Is there any way I can list all the text that starts only with 'ORA-'? Or there any grep command that can... (7 Replies)
Discussion started by: kakashi_jet
7 Replies

2. Shell Programming and Scripting

Cutting segment of a string

Hi, I am using bash. My question concerns cutting out segments of a string. Given the following filename: S2002254132542.L1A_MLAC.x.hdf I have been able to successfully separate the string at the periods (.): $ L1A_FILE=S2002254132542.L1A_MLAC.x.hdf $ BASE=$(echo $L1A_FILE | awk -F.... (5 Replies)
Discussion started by: msb65
5 Replies

3. Programming

Data segment or Text segment

Hi, Whether the following piece of code is placed in the read-only memory of code (text) segment or data segment? char *a = "Hello"; I am getting two different answers while searching in google :( that's why the confusion is (7 Replies)
Discussion started by: royalibrahim
7 Replies

4. Shell Programming and Scripting

How to find repeated string in a text file

I have a text file where I need to find the string = ST*850* This string is repetaed several times in the file, so I need to know how many times it appears in the file, this is the text files: ISA*00* *00* *08*925485USNR *ZZ*IMSALADDERSP... (13 Replies)
Discussion started by: cucosss
13 Replies

5. Shell Programming and Scripting

Reformat a string and pad space at the end

I need to read in the string from input file and reform it by cut each segment and check the last segement lenght. If the last segment length is not as expected (see below segment file or table. It is predefined), then pad enough space. Old string FU22222222CA6666666666AKxvbFMddreeadBP999... (1 Reply)
Discussion started by: menglm
1 Replies

6. Programming

Check The value a pointer returned by struct s_client != 0

Hi guys , i got segment fault , and when i trace , found it happens since the value of pointer which is returned by Struct S_client (*ptr) is zero if (ptr !=0)i know , adding above line of code is not the solution and not correct for the case since above line only check for the pointer... (1 Reply)
Discussion started by: pooyair
1 Replies

7. Shell Programming and Scripting

sed multilines + separator confusion !!

Hi Seders, i am new to this forum, but i think it's quite the best place to post. So, here is my pb : I have a csv file, with comma separator and text enclosed by ". First pb is with text in " ......... ", wich sometimes includes lines break, and commas And to complicate a little more,... (4 Replies)
Discussion started by: yogeek
4 Replies