rpmexpandnumeric
(PECL rpminfo >= 1.2.0)
rpmexpandnumeric — Retrieve numerical value of a RPM macro
パラメータ
text
-
Text with RPM macros to expand.
戻り値
Macro expansion as a int.
Boolean values (Y
or y
returns 1,
N
or n
returns 0
)
are permitted as well. An undefined macro returns 0
.
例
例1 A rpmexpandnumeric() example
<?php
$bits = rpmexpandnumeric("%__isa_bits");
print_r($bits);
?>
上の例の出力は以下となります。
64
+add a note
User Contributed Notes
There are no user contributed notes for this page.
↑ and ↓ to navigate •
Enter to select •
Esc to close
Press Enter without
selection to search using Google