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..
 
XmTextFieldInsert(library call) 										   XmTextFieldInsert(library call)

NAME
XmTextFieldInsert -- A TextField function that inserts a character string into a text string SYNOPSIS
#include <Xm/TextF.h> void XmTextFieldInsert( Widget widget, XmTextPosition position, char * value); DESCRIPTION
XmTextFieldInsert inserts a character string into the text string in the TextField widget. The character positions begin at 0 (zero) and are numbered sequentially from the beginning of the text. For example, to insert a string after the fourth character, the position parame- ter must be 4. This routine calls the widget's XmNvalueChangedCallback and verification callbacks, either XmNmodifyVerifyCallback or XmNmodifyVerifyCall- backWcs, or both. If both verification callback lists are registered, the procedures of the XmNmodifyVerifyCallback list are executed first and the resulting data is passed to the XmNmodifyVerifyCallbackWcs callbacks. If the XmNcursorPosition resource is greater than or is the same value as position, the XmNmotionVerifyCallback is called. widget Specifies the TextField widget ID position Specifies the position in the text string where the character string is to be inserted value Specifies the character string value to be added to the text widget For a complete definition of TextField and its associated resources, see XmTextField(3). RELATED
XmTextField(3) and XmTextFieldInsertWcs(3). XmTextFieldInsert(library call)
All times are GMT -4. The time now is 11:27 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy