Sponsored Content
Full Discussion: How can I do that ?
Top Forums Programming How can I do that ? Post 302095913 by !_30 on Sunday 12th of November 2006 08:44:40 AM
Old 11-12-2006
Ya , it's easier..

I have a problem.

Let's say I have this string s="send !_30 <what I wanna send>".

It's there a C fucntion ( in strings ) , I can use to copy !_30 in another string.
I mean , a C function to copy a string beginning from position x and ending in position y from string s.

Let's say : s="send !_30 <what I wanna send>"
012345678

something like this : copy from position 5 to postion 8 , to string s1 meaning s1="!_30"


By the way : Does it exist a function , I can use to see if 2 C string's are identical ? Smilie

P.S. : I made it to copy that string ... but I'm still curios if I can do it easier with a function ... Smilie
Smilie

Last edited by !_30; 11-12-2006 at 10:32 AM..
 
XmTextFindStringWcs(3X) 												   XmTextFindStringWcs(3X)

NAME
XmTextFindStringWcs - A Text function that finds the beginning position of a wide character text string SYNOPSIS
#include <Xm/Text.h> Boolean XmTextFindStringWcs (widget, start, wcstring, direction, position) Widget widget; XmTextPosition start; wchar_t *wcstring; XmTextDirection direction; XmTextPosition *position; DESCRIPTION
XmTextFindStringWcs locates the beginning position of a specified wide character text string. This routine searches forward or backward for the first occurrence of the string, starting from the given start position. If a match is found, the function returns the position of the first character of the string in position. Specifies the Text widget ID. Specifies the character position from which the search pro- ceeds. This is an integer number of characters from the beginning of the text buffer. The first character position is 0. Specifies the wide character search string. Indicates the search direction. It is relative to the primary direction of the text. The possible values are: The search proceeds toward the end of the buffer. The search proceeds toward the beginning of the buffer. Specifies the pointer in which the first character position of the string match is returned. This is an integer number of characters from the beginning of the buf- fer. The first character position is 0. If the function returns False, this value is undefined. For a complete definition of Text and its associated resources, see XmText(3X). RETURN VALUE
Returns True if a string match is found; otherwise, returns False. SEE ALSO
XmText(3X), XmTextFindString(3X) XmTextFindStringWcs(3X)
All times are GMT -4. The time now is 06:50 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy