03-27-2019
Quote:
Originally Posted by
nezabudka
how to implement with a dynamic array shown in #5 post
Thanks for that. But, i'm having problems getting the code to work. As it seems, now, it doesn't save the changes made to the array....
Thanks.
--- Post updated at 05:09 PM ---
Bleh. I'm an idiot. I don't claim to be the best C programmer out there..
Anyway, what needs to be done, is to get the dynamic array code working.
When I make a call to the dynamic array function, it doesn't appear to do anything, except print out the elements of the array.
I still have to recompile the source in order for a new element to be displayed. What exactly, am I doing wrong here?
Thanks.
Last edited by ignatius; 03-27-2019 at 02:20 PM..
10 More Discussions You Might Find Interesting
1. Solaris
I would like to extend a logical drive on our 3510. I have four unallocated disks which I would like to use for this purpose.
The 3510 supports a Sun Cluster but for now all I wish to see is a "new" disk when I run format.
I am a little familiar with the telnet/ssh session on the 3510 but am... (2 Replies)
Discussion started by: malcqv
2 Replies
2. Shell Programming and Scripting
I would like to find a list of files in a directory less than 2 days old and put them into an array variable. And then search for each file in the array for a matching string say "Return-code= 0". If it matches, then display the array element with a message as "OK".
Your help will be greatly... (1 Reply)
Discussion started by: mkbaral
1 Replies
3. Shell Programming and Scripting
All,
I would like to add the first 10 elements of an array. Here is how I am doing it now (only included first few add ops):
#!/usr/bin/ksh
###Grab the array values out of a file###
TOTAL=`awk '/time/' /tmp/file.out | awk '{print $4}'`
set -A times $TOTAL
SUM=$((${times} + times... (3 Replies)
Discussion started by: Shoeless_Mike
3 Replies
4. Solaris
Hi all
Ive got a v440 with an external T3 RAID in a dual bus configuration. I need to add an additional JBOD extension to the disk array via two VDCH cables.
Now, can I do this as the server is live ? Can I just plug the two cables in, switch on the additional extension ? Will this cause... (1 Reply)
Discussion started by: sbk1972
1 Replies
5. Shell Programming and Scripting
Hi,
Kindly assist by analyzing the code below and suggest changes to achieve the required output.
The input file:
01-010241800000 35000 MV010 02/03/09 0306 03060226 03
02-004103300000 470000 MV010 02/03/09 0301 03010276 03
The objective is to convert field No4. from dd/mm/yy to yyyymmdd... (5 Replies)
Discussion started by: talk2pawee
5 Replies
6. Shell Programming and Scripting
I need some help with adding lines to file and substitute a pattern.
Ok I have a file:
#cat names.txt
name: John Doe
stationed: 1
name: Michael Sweets
stationed: 41
.
.
.
And would like to change it to:
name: John Doe
employed
permanently
stationed: 1-office (7 Replies)
Discussion started by: hemo21
7 Replies
7. Shell Programming and Scripting
I'm trying to add the paths of all the xml files in certain directories to an array. I want to use the array later in my code. Anyway, for some reason this isn't working. Any help would be appreciated.
Path_Counter=0
for result in "find * -name '*.xml'"; do
XmlPath="$result"
echo... (2 Replies)
Discussion started by: Fly_Moe
2 Replies
8. Shell Programming and Scripting
Hello,
I have a simple task and I am having some trouble with the syntax. I have a variable with an assigned value,
CMD_STRING='-L 22 -s 0 -r -O -A i -N 100 -n'
I would like to add that variable to an array. As far as I have been able to look up, the syntax should be something like,
... (4 Replies)
Discussion started by: LMHmedchem
4 Replies
9. Solaris
Hello Everybody !
I'm Harry from Athens Greece and i have a problem with my Sendmail 8.13.3 installed on Solaris SunOS ultra 5.10.
The problem is that when someone sends to us an e-mail and his e-mail address is like : xxxx@xxxx.com, our e-mail server adds up in the senders address a .com.gr... (2 Replies)
Discussion started by: Mcasim
2 Replies
10. Shell Programming and Scripting
Hi Experts,
I've got this problem where I need to add two array in shell script such that that is an element is greater than 9 then it get further split into individual digit, something like below :
Input :-
array1=(2 6 8 9 10 12)
array2=(5 4 6 8 12 14)
Output :-
array3=(7 1 0 1 4 1 7 2 2... (8 Replies)
Discussion started by: mukulverma2408
8 Replies
LEARN ABOUT LINUX
wxstyledtextevent
wxStyledTextEvent(3erl) Erlang Module Definition wxStyledTextEvent(3erl)
NAME
wxStyledTextEvent - See external documentation: wxStyledTextEvent.
DESCRIPTION
See external documentation: wxStyledTextEvent .
Use wxEvtHandler:connect/3 with EventType: :
stc_change , stc_styleneeded , stc_charadded , stc_savepointreached , stc_savepointleft , stc_romodifyattempt , stc_key , stc_dou-
bleclick , stc_updateui , stc_modified , stc_macrorecord , stc_marginclick , stc_needshown , stc_painted , stc_userlistselection ,
stc_uridropped , stc_dwellstart , stc_dwellend , stc_start_drag , stc_drag_over , stc_do_drop , stc_zoom , stc_hotspot_click ,
stc_hotspot_dclick , stc_calltip_click , stc_autocomp_selection
See also the message variant #wxStyledText{ } event record type.
This class is derived (and can use functions) from:
wxCommandEvent
wxEvent
DATA TYPES
wxStyledTextEvent() :
An object reference, The representation is internal and can be changed without notice. It can't be used for comparsion stored on disc
or distributed for use on other nodes.
EXPORTS
getPosition(This::wxStyledTextEvent()) -> integer()
See external documentation .
getKey(This::wxStyledTextEvent()) -> integer()
See external documentation .
getModifiers(This::wxStyledTextEvent()) -> integer()
See external documentation .
getModificationType(This::wxStyledTextEvent()) -> integer()
See external documentation .
getText(This::wxStyledTextEvent()) -> string()
See external documentation .
getLength(This::wxStyledTextEvent()) -> integer()
See external documentation .
getLinesAdded(This::wxStyledTextEvent()) -> integer()
See external documentation .
getLine(This::wxStyledTextEvent()) -> integer()
See external documentation .
getFoldLevelNow(This::wxStyledTextEvent()) -> integer()
See external documentation .
getFoldLevelPrev(This::wxStyledTextEvent()) -> integer()
See external documentation .
getMargin(This::wxStyledTextEvent()) -> integer()
See external documentation .
getMessage(This::wxStyledTextEvent()) -> integer()
See external documentation .
getWParam(This::wxStyledTextEvent()) -> integer()
See external documentation .
getLParam(This::wxStyledTextEvent()) -> integer()
See external documentation .
getListType(This::wxStyledTextEvent()) -> integer()
See external documentation .
getX(This::wxStyledTextEvent()) -> integer()
See external documentation .
getY(This::wxStyledTextEvent()) -> integer()
See external documentation .
getDragText(This::wxStyledTextEvent()) -> string()
See external documentation .
getDragAllowMove(This::wxStyledTextEvent()) -> bool()
See external documentation .
getDragResult(This::wxStyledTextEvent()) -> WxDragResult
Types WxDragResult = integer()
See external documentation .
WxDragResult is one of ?wxDragError | ?wxDragNone | ?wxDragCopy | ?wxDragMove | ?wxDragLink | ?wxDragCancel
getShift(This::wxStyledTextEvent()) -> bool()
See external documentation .
getControl(This::wxStyledTextEvent()) -> bool()
See external documentation .
getAlt(This::wxStyledTextEvent()) -> bool()
See external documentation .
AUTHORS
<>
wxErlang 0.98.9 wxStyledTextEvent(3erl)