Sponsored Content
Top Forums Programming Unable to assign zero to unsigned character array Post 302757083 by kbw on Thursday 17th of January 2013 04:35:11 AM
Old 01-17-2013
I would not expect that code to compile as def, ghi are dereferenced incorrectly.

Further more, it's not clear what you mean when you say zero. Do you mean ASCII code zero or the character zero? You seem to have a mix of both.
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

assign awk array with printf

I am trying to assign a awk array for further processing later in the script. I can't seem to figure it out. If someone could look at this and help me, I would very much appreciate it. Thanks in Advance. for ( x = 1 ; x <= Var ; x++ ) { if ( x in varr ) { ... (2 Replies)
Discussion started by: timj123
2 Replies

2. Shell Programming and Scripting

Unable to assign value to variable using awk coz of whitespace in value

Unix gurus, I have a file as below, which is basically the result set obtained from a sql query on an Oracle database. ID PROG_NAME USER_PROG_NAME -------- --------------- ---------------------------------------- 33045 INCOIN Import Items 42690 ... (3 Replies)
Discussion started by: sunpraveen
3 Replies

3. Shell Programming and Scripting

How to assign a variable to an array

I want to ask the user to enter an X amount of file names. I want to put those names into an array and then loop back through them to verify they are in the directory. 1st- How would I assign the value to an array and what is the correct syntax. 2nd- how would i reference that array after I... (3 Replies)
Discussion started by: tvb2727
3 Replies

4. Shell Programming and Scripting

assign value to array variable

Hi, I have a piece of code as follows: i=0 while read LINE do var = "$LINE" i=$((i+1)) echo "${var}" done < file I want to assign value to the array var. However, when i execute the script i get a error. Please can you help me know what i am missing. I ultimately want to... (2 Replies)
Discussion started by: sunrexstar
2 Replies

5. Shell Programming and Scripting

Assign value to array separated by #

Hi all , I have a string like para1#para2#para3 i want to assign para1 as first element para2 as second and so on i tried IFS=# set -A array para1#para2#para3 echo ${array} para1 para2 para3 i want echo ${array} para1 (2 Replies)
Discussion started by: max_hammer
2 Replies

6. Shell Programming and Scripting

Unable to assign command output to variable

Code set -x STATUS="0" echo $STATUS for i in `ls -ltr Report*|awk '{ print $9 }'` do if then flg = "`head -1 "$i" |cut -c 31-33`" echo `head -1 "$i" |cut -c 31-33` echo $flg if then echo "having Fun" STATUS="2" else echo "no Fun" fi fi (2 Replies)
Discussion started by: Funkeydude
2 Replies

7. Shell Programming and Scripting

Unable to read assign values to two variables in while loop

I am trying to read a input file which has two columns separated by space Input file server1 server2 server3 server4 server5 server6 When i execute the below while code it reads line by line and a and b variables are able to successfully fetch the values while read a b do echo "$a" echo... (5 Replies)
Discussion started by: chidori
5 Replies

8. Shell Programming and Scripting

How to Assign an shell array to awk array?

Hello All, Can you please help me with the below. #!/bin/bash ARR="No Differences In Stage Between HASH_TOTALS & HASH_TOTALS_COMP For UNINUM:0722075 PROVIDER:5 EXTRACT_DT:30-SEP-12 VER_NUM:1" ARR="No Differences In Stage Between HASH_TOTALS & HASH_TOTALS_COMP For UNINUM:0722075 PROVIDER:5... (14 Replies)
Discussion started by: Ariean
14 Replies

9. Shell Programming and Scripting

Unable to assign a value

I have written a shell script to calculate dbsize :- db2 "call get_dbsize_info(?,?,?,-1)" | sed -n '8p' | awk -F : '{print $2}' dbsize=`db2 "call get_dbsize_info(?,?,?,-1)" | sed -n '8p' | awk -F : '{print $2}'` echo $dbsize when I execute it the syntax works but it's not... (11 Replies)
Discussion started by: lazydev
11 Replies

10. Shell Programming and Scripting

Assign two dimensional array in bash at once

Hi, I have a 10*10 two dimensional array. How do I assign value to all it's 100 elements at once? I don't want to open two for loops and assign one by one. Thanks, Amit (2 Replies)
Discussion started by: amit14august
2 Replies
iswalpha(3C)						   Standard C Library Functions 					      iswalpha(3C)

NAME
iswalpha, isenglish, isideogram, isnumber, isphonogram, isspecial, iswalnum, iswascii, iswblank, iswcntrl, iswdigit, iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit - wide-character code classification functions SYNOPSIS
#include <wchar.h> #include <wctype.h> int iswalpha(wint_t wc); int isenglish(wint_t wc); int isideogram(wint_t wc); int isnumber(wint_t wc); int isphonogram(wint_t wc); int isspecial(wint_t wc); int iswalnum(wint_t wc); int iswascii(wint_t wc); int iswblank(wint_t wc); int iswcntrl(wint_t wc); int iswdigit(wint_t wc); int iswgraph(wint_t wc); int iswlower(wint_t wc); int iswprint(wint_t wc); int iswpunct(wint_t wc); int iswspace(wint_t wc); int iswupper(wint_t wc); int iswxdigit(wint_t wc); DESCRIPTION
These functions test whether wc is a wide-character code representing a character of a particular class defined in the LC_CTYPE category of the current locale. In all cases, wc is a wint_t, the value of which must be a wide-character code corresponding to a valid character in the current locale or must equal the value of the macro WEOF. If the argument has any other values, the behavior is undefined. iswalpha(wc) Tests whether wc is a wide-character code representing a character of class "alpha" in the program's current locale. isenglish(wc) Tests whether wc is a wide-character code representing an English language character, excluding ASCII characters. isideogram(wc) Tests whether wc is a wide-character code representing an ideographic language character, excluding ASCII characters. isnumber(wc) Tests whether wc is a wide-character code representing digit [0-9], excluding ASCII characters. isphonogram(wc) Tests whether wc is a wide-character code representing a phonetic language character, excluding ASCII characters. isspecial(wc) Tests whether wc is a wide-character code representing a special language character, excluding ASCII characters. iswalnum(wc) Tests whether wc is a wide-character code representing a character of class "alpha" or "digit" in the program's current locale. iswascii(wc) Tests whether wc is a wide-character code representing an ASCII character. iswblank(wc) Tests whether wc is a wide-character code representing a character of class "blank" in the program's current locale. This function is not available to applications conforming to standards prior to SUSv3. See standards(5). iswlower(wc) Tests whether wc is a wide-character code representing a character of class "lower" in the program's current locale. iswcntrl(wc) Tests whether wc is a wide-character code representing a character of class "cntrl" in the program's current locale. iswdigit(wc) Tests whether wc is a wide-character code representing a character of class "digit" in the program's current locale. iswgraph(wc) Tests whether wc is a wide-character code representing a character of class "graph" in the program's current locale. iswprint(wc) Tests whether wc is a wide-character code representing a character of class "print" in the program's current locale. iswpunct(wc) Tests whether wc is a wide-character code representing a character of class "punct" in the program's current locale. iswspace(wc) Tests whether wc is a wide-character code representing a character of class "space" in the program's current locale. iswupper(wc) Tests whether wc is a wide-character code representing a character of class "upper" in the program's current locale. iswxdigit(wc) Tests whether wc is a wide-character code representing a character of class "xdigit" in the program's current locale. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ |ATTRIBUTE TYPE |ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |CSI |Enabled | +-----------------------------+-----------------------------+ |Interface Stability |See below. | +-----------------------------+-----------------------------+ |MT-Level |MT-Safe with exceptions | +-----------------------------+-----------------------------+ The iswalpha(), iswalnum(), iswblank(), iswcntrl(), iswdigit(), iswgraph(), iswlower(), iswprint(), iswpunct(), iswspace(), iswupper(), and iswxdigit() functions are Standard. SEE ALSO
localedef(1), setlocale(3C), stdio(3C), ascii(5), attributes(5), standards(5) SunOS 5.11 19 Apr 2004 iswalpha(3C)
All times are GMT -4. The time now is 11:12 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy