jed-users mailing list

[2003 Date Index] [2003 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

string2array ?


Dear jedies,

I am looking for a function that takes a string and returns
an array of characters, something like

str2array(str)
{
   variable i, a = String_Type[strlen(str)];
   for (i=0; i<strlen(str); i++)
     a[i] = str[i];
}

  
  What I want to do is doing a comparision on the array to find 
  out at which places str contains uppercase characters:

upcase = where(str2array(str) < 97));

Is there some simpler or readymade solution?


  Günter
  
--
Milde at ife.et.tu-dresden.de


--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.


[2003 date index] [2003 thread index]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]