![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: split string into word array Topic Summary: string to word array Created On: 26-Sep-2007 16:48 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
how can i split a string into a word array..
|
|
![]() |
|
![]() |
|
Put the string into a buffer.
Use a while loop to find the spaces. break up the string based on the spaces and put each word into an index in the array. Like so: ------------------------- Scott Boisvert Engineering Tools Administrator L-3 Communications - Avionics Systems scott.boisvert@l-3com.com Edited: 26-Sep-2007 at 18:43 by Scott Boisvert |
|
![]() |
|
![]() |
|
Here is an alternative approach using a simple implementation of the C function strtok().
------------------------- Tony Goodman http://www.smartdxl.com |
|
![]() |
Telelogic DOORS
» DXL Exchange
»
split string into word array
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.