i want to convert from an integer to a string..in unix...i am writing a C program with embedded SQL...
I remeber using itoa...but for some reason it doesnt work......i cant find it in the manual.....
Maybe that is the wrong command.....
but i have checked Dev Studio.....and it doest exist in the... (6 Replies)
Hi
i am writing a shell script; I need to convert a string to integer so that i can use it in the 'awk' command to choose a field.
can you please help me. thank you. (2 Replies)
Hi everyone,
I would like to know how to convert an integer to a string. for instance if i=1 i would like to creat a variable called constant1. i want to do this in a for loop so for each value of i, i create a new variable such as constant2, constant3,... and so on.
for i in 1 2 3
do ... (1 Reply)
hi,
I need to create an IF condition. I read a line from a file and get the 5 word using space as a delimited. This word can have only two values either '*' or '1-5'
I need to write an IF condition for two cases. I can either compare it to * or 1-5(or even 1 by cutting and getting only the... (3 Replies)
Hi all,
is there an easy way to convert integer to string in bash?
I have numbers like 1, 2, ..., 112, ...
and I would like to get
001 002 003 004 ...
Thank you,
Sarah (4 Replies)
Input:
XXX:1,XXX:3,XXX:3
Output:
A=1
B=3
C=3
Below code is what i do currently. However it doesn't work out for all cases. As some times the last digit extracted is giving me error. It cant be used for arithmetic computation.
Any better methods out there? If possible, can you... (9 Replies)
I am on HP-UX using ksh in the script.
MaxSal=`sqlplus -silent /nolog <<EOF
connect / as sysdba
whenever sqlerror exit sql.sqlcode
set pagesize 0 feedback off verify off heading off echo off
select max(sal) from emp1;
select max(sal) from emp2;
select max(sal) from emp3;
exit;
EOF`... (3 Replies)
I have a function that is supposed to check for user processes and wait for 0 count before exiting the function. I am sure I have more than one issue in my code, but the stumbling block right now is that I am trying to convert the value of my variable from a string to integer.
process_count... (10 Replies)
Discussion started by: MIA651
10 Replies
LEARN ABOUT PHP
gupnp_service_notify
GUPNP_SERVICE_NOTIFY(3) 1 GUPNP_SERVICE_NOTIFY(3)gupnp_service_notify - Notifies listening clientsSYNOPSIS
bool gupnp_service_notify (resource $service, string $name, int $type, mixed $value)
DESCRIPTION
Notifies listening clients that the property have changed to the specified values.
PARAMETERS
o $service
- A service identifier.
o $name
- The name of the variable.
o $type
- The type of the variable. Type can be one of the following values:
o GUPNP_TYPE_BOOLEAN - Type of the variable is boolean.
o GUPNP_TYPE_INT - Type of the variable is integer.
o GUPNP_TYPE_LONG - Type of the variable is long.
o GUPNP_TYPE_DOUBLE - Type of the variable is double.
o GUPNP_TYPE_FLOAT - Type of the variable is float.
o GUPNP_TYPE_STRING - Type of the variable is string.
o $value
- The value of the variable.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
ERRORS /EXCEPTIONS
Issues E_WARNING with either not correctly defined type of the variable or the value is not corresponding to the defined type.
SEE ALSO gupnp_service_freeze_notify(3), gupnp_service_thaw_notify(3).
PHP Documentation Group GUPNP_SERVICE_NOTIFY(3)