Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

blt_treenodeid(3) [debian man page]

Blt_TreeNodeId(3)					      BLT Library Procedures						 Blt_TreeNodeId(3)

__________________________________________________________________________________________________________________________________________________

NAME
Blt_TreeNodeId - Returns the node serial number. SYNOPSIS
#include <bltTree.h> unsigned int Blt_TreeNodeId(node) ARGUMENTS
Blt_TreeNode node (in) Node whose ID is to be returned. _________________________________________________________________ DESCRIPTION
This procedure returns the node serial number. The node serial number is useful for programs that export the tree data object to the Tcl programming level. Since node labels (and therefore pathnames) are not unique, the ID can be used to uniquely identify a node. The arguments are as follows: node The node whose serial number is returned. The serial number of the root node for example is always 0. RETURNS
The serial number of the node. Nodes are given a unique serial number when they are created. You can use the ID to later retrieve the node using Blt_TreeGetNode. EXAMPLE
The following example prints the ID of a node. printf("root ID is %s ", Blt_TreeNodeId(node)); KEYWORDS
Tcl_TreeCreateNode, Tcl_TreeDeleteNode BLT
2.4 Blt_TreeNodeId(3)

Check Out this Related Man Page

Blt_TreeDeleteNode(3)					      BLT Library Procedures					     Blt_TreeDeleteNode(3)

__________________________________________________________________________________________________________________________________________________

NAME
Blt_TreeDeleteNode - Deletes a node and its descendants. SYNOPSIS
#include <bltTree.h> Blt_TreeNode Blt_TreeDeleteNode(tree, node) ARGUMENTS
Blt_Tree tree (in) Tree containing the node. Blt_TreeNode node (in) Node to be deleted. _________________________________________________________________ DESCRIPTION
This procedure deletes a given node and all it descendants from a tree data object. The arguments are as follows: tree The tree containing the parent node. node Node to be deleted. The node and its descendant nodes are deleted. Each node's data values are deleted also. The reference count of the Tcl_Obj is decremented. Since all tree objects must contain at least a root node, the root node itself can't be deleted unless the tree is released and destroyed. Therefore you can clear a tree by deleting its root, but the root node will remain until the tree is destroyed. RETURNS
Always returns TCL_OK. Errors generated in a notification callbacks are backgrounded (see Tcl_TreeCreateNotifyHandler). EXAMPLE
The following example deletes the root node. Blt_TreeNode root; root = Blt_TreeRootNode(token); Blt_TreeDeleteNode(token, root); NOTIFICATIONS
Blt_TreeDeleteNode can trigger tree notify events. You can be notified whenever a node is deleted by using the Blt_TreeCreateNotifyHan- dler. A callback routine is registered that will be automatically invoked whenever a node is deleted via Blt_TreeDeleteNode to the tree. KEYWORDS
tree, token BLT
2.4 Blt_TreeDeleteNode(3)
Man Page

15 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

serial card in SCO Unix

Does anyone know how to configure a generic serial card within SCO Unix ???? Any specific driver ? Any help will be greatly appreciated CHRIS (7 Replies)
Discussion started by: germiphene
7 Replies

2. UNIX for Dummies Questions & Answers

serial no. format problem

Hello guyz.. just want to know whether my doubt can be solve or not..maybe it my company using yyyymmddxx for serial no format..and it cause problems.. first, my adjustments for moving n deleting domain name exceeded xxx per day, and it will cause and effect the yyyymmdd digits. can... (6 Replies)
Discussion started by: unknown2205
6 Replies

3. Solaris

[help] how to get serial number of cpu or other hardware

hi experts, hi all, need help, how to get serial number of cpu or other hardware using command? does anybody know using what syntax? thank you wu (8 Replies)
Discussion started by: bucci
8 Replies

4. Shell Programming and Scripting

using sed to get IP-address

Hi folks! I need to get an ip address of a string that has the same apperance in every case. The string looks like this: $node="node_ip:109.50.89.211; node:j20" What I want to do is to extract the IP-address from this string using regular expression. Since I havn't worked much with... (10 Replies)
Discussion started by: eeriale
10 Replies

5. HP-UX

Set the Serial Number in HPUX?

Hi, I have a refurbished HP C3750 workstation that my company recently bought. We have a need to be able to retrieve its serial number through software, and I found instructions at HP's Website on how to do this. Unfortunately, the machine does not return a serial number using any of the... (16 Replies)
Discussion started by: irinotecan
16 Replies

6. Solaris

Finding server serial number

Hi All, I wnat to know how to find out the Server serial number in command prompt? I am using sneep command but it throughing unknown. Thanks and Regards, (8 Replies)
Discussion started by: lbreddy
8 Replies

7. Programming

Problem with read data from serial device

I have problem with C programming. I want to send & receive data through serial communication. I send data(command) to device to get data from device but when receive data, it can't get altogether of data. It get only some data. What should I do to get altogether of data? If all of... (7 Replies)
Discussion started by: noppon_s
7 Replies

8. Shell Programming and Scripting

Some Awk Getline help?

Greetings, I have about 3000 files that I want to search. The first column in all of these 3000 files has a unique serial number on each line. The subsequent columns have lots of data. I have another masterfile with three columns to help me find all the data I need in a moments notice: col 1... (15 Replies)
Discussion started by: jeeplou
15 Replies

9. AIX

RSH intermittent error rshd: 0826-813 Permission is denied.

I am getting an error from one node in a set with RSH setup between them, node one will connect to node two every other time (consistently), however node to connects to node one every time without problem. Here is what I am seeing, makes no sense to me. Can anyone help? sbhcprdb01<root>: rsh... (6 Replies)
Discussion started by: JodyTek
6 Replies

10. Shell Programming and Scripting

Kornshell gathering user input question

Alright I have a function that does a bunch of commands and then I ask the user for what type of node they are on. So determining which node they are on means they will run a different function. Whats the correct syntax for that? function everything { echo "do stuff" }... (10 Replies)
Discussion started by: Blogger11
10 Replies

11. Programming

Wrong data with Read from a serial port.

hi, I've a problem on my C/C++ program with Posix Library. I have to read data from the serial but I have incorrect data, in fact I get a bunch of zeros: "2953.3174, 2785.2126, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0 , 0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0 ,... (24 Replies)
Discussion started by: enaud
24 Replies

12. Debian

Reading data from a serial port

Dear List - I am trying to capture data from a serial port and write it to a file. /var/www$ cat /dev/ttyS0 > scale_value.html cat: /dev/ttyS0: Device or resource busy /var/www# cat /proc/tty/driver/serial serinfo:1.0 driver revision: 0: uart:16550A port:000003F8 irq:4 tx:90... (11 Replies)
Discussion started by: Meow613
11 Replies

13. AIX

Need to clone two AIX machines

Hello, I have two AIX machine and i want to make the two nodes to be identical , so i will change the Hostname, IP and copy the hosts file to node 2. anything else need to copy it from node 1 to node 2 to ensure that two nodes will be the same? Thanks (8 Replies)
Discussion started by: moudmm
8 Replies

14. Solaris

/u01 is filling up -how to know the large files

hi, my /u01 size is filling up and now reached to 93% on node 1 and 91% on node 2. it is usually very easy to identify large files normally dumps files or audit files etcetra but in this case i am not getting it as i am giving the following command to find the 5 biggest files of the file system... (9 Replies)
Discussion started by: janakors
9 Replies

15. Solaris

Rebooting Windows machine leads to continue sync reset on UNIX

Hello, We have Windows 10 machine connected to Sparc T5440 server via serial cable. We access the server from the Windows 10 machine using putty via serial connection. This allows us to access ILOM and Unix. We have recently noticed that whenever we reboot the windows machine (Windows 10),... (11 Replies)
Discussion started by: jasonu
11 Replies