04-21-2009
General conventions
Generally "_r" suffix denote "Thread-Safe" version. It may cause some (negligible) performance impact because of locking and dynamic memory allocations with-in such libraries.
10 More Discussions You Might Find Interesting
1. Linux
samba:/home/backup # df -h /home/
Filesystem Size Used Avail Use% Mounted on
/dev/sdb2 34G 8.6G 26G 26% /home
samba:/home/backup # df -H /home/
Filesystem Size Used Avail Use% Mounted on
/dev/sdb2 37GB 9.2GB 28GB 26% /home
what... (2 Replies)
Discussion started by: cw1972
2 Replies
2. Programming
Hi,
What is the difference between the C and C++. And what new features is added in the C++.then C Programming in the UNIX Environmnet.
Thanks:
www.hytechpro.com (2 Replies)
Discussion started by: hytechpro
2 Replies
3. Shell Programming and Scripting
Somebody please tell me the difference between $@ and $*
Thanks in advance.
Saneesh Joseph (1 Reply)
Discussion started by: saneeshjose
1 Replies
4. UNIX for Advanced & Expert Users
difference b/w shell scripting and perl scripting (2 Replies)
Discussion started by: simmijaswal
2 Replies
5. Shell Programming and Scripting
just wondering what the difference is between 1,$ and /g when doing a substitution in vi. doesn't seem to be much difference from what i can see. (2 Replies)
Discussion started by: bigubosu
2 Replies
6. UNIX for Dummies Questions & Answers
scp 123.txt user1@computer1.com:..//john_x1/lab
scp 123.txt user1@computer1.com:../john_x1/lab
What is the difference between single and slash here and in general?
How to copy if we have a unique directory somewhere? Is some of above ways more prefered or... better solutions exists???
... (8 Replies)
Discussion started by: c_lady
8 Replies
7. UNIX for Dummies Questions & Answers
$x=10
and providing the spaces between = and 10
$x= 10 (4 Replies)
Discussion started by: shashank1311
4 Replies
8. Programming
I think both write at the end of the file ......
but is there a sharp difference between those 2 instruction .....
thank you
this is my 3rd question today forgive me :D (1 Reply)
Discussion started by: fwrlfo
1 Replies
9. Shell Programming and Scripting
Heyas
I'm reworking tui-dd atm, and having a similar issue with a 'weird formated tempfile'.
I've already applied what seemed to help from: https://www.unix.com/unix-for-dummies-questions-and-answers/261156-awk-should-work-shouldnt-2.html
However, it is weird...
The mini-dd works as... (2 Replies)
Discussion started by: sea
2 Replies
10. Shell Programming and Scripting
In the awk I am trying to subtract the difference $3-$2 of each matching $4 before the first _ (underscore) and print that value in $13.
I think the awk will do that, but added comments. What I am not sure off is how to add a line or lines that will add sum each matching $13 value and put it in... (2 Replies)
Discussion started by: cmccabe
2 Replies
LEARN ABOUT PHP
bbcode_set_flags
BBCODE_SET_FLAGS(3) 1 BBCODE_SET_FLAGS(3)
bbcode_set_flags - Set or alter parser options
SYNOPSIS
bool bbcode_set_flags (resource $bbcode_container, int $flags, [int $mode = BBCODE_SET_FLAGS_SET])
DESCRIPTION
Set or alter parser options
PARAMETERS
o $bbcode_container
- BBCode_Container resource, returned by bbcode_create(3).
o $flags
- The flag set that must be applied to the bbcode_container options
o $mode
- One of the BBCODE_SET_FLAGS_* constant to set, unset a specific flag set or to replace the flag set by flags.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
EXAMPLES
Example #1
bbcode_set_flags(3) usage example
<?php
/*
* Preparing RuleSet
*/
$arrayBBCode=array(
'b'=> array('type'=>BBCODE_TYPE_NOARG,
'open_tag'=>'<b>', 'close_tag'=>'</b>'),
'u'=> array('type'=>BBCODE_TYPE_NOARG,
'open_tag'=>'<u>', 'close_tag'=>'</u>'),
'i'=> array('type'=>BBCODE_TYPE_NOARG,
'open_tag'=>'<i>', 'close_tag'=>'</i>'),
);
/*
* Paired incorrectly nested BBCode
*/
$text="[i] Parser [b] Auto Correction [/i] at work [/b]
";
$BBHandler=bbcode_create($arrayBBCode);
echo bbcode_parse($BBHandler,$text);
// Enabling reopening of automatically closed elements
bbcode_set_flags($BBHandler,BBCODE_CORRECT_REOPEN_TAGS,
BBCODE_SET_FLAGS_SET);
echo bbcode_parse($BBHandler,$text);
/*
* Unpaired incorrectly nested BBCode
*/
$text="[i] Parser [b] Auto Correction [/i] at work
";
echo bbcode_parse($BBHandler,$text);
// Enabling automatic close of pending tags
bbcode_set_flags($BBHandler,
BBCODE_CORRECT_REOPEN_TAGS|BBCODE_AUTO_CORRECT,
BBCODE_SET_FLAGS_SET);
echo bbcode_parse($BBHandler,$text);
?>
The above example will output:
<i> Parser <b> Auto Correction </b></i> at work
<i> Parser <b> Auto Correction </b></i><b> at work </b>
<i> Parser [b] Auto Correction </i> at work
<i> Parser <b> Auto Correction </b></i><b> at work
</b>
PHP Documentation Group BBCODE_SET_FLAGS(3)