changeset 2000:e6c449f89a5f

*** empty log message ***
author baghdadi <baghdadi>
date Wed, 09 Mar 2005 18:52:28 +0000
parents 62164c30ab9b
children 7caf174f3544
files libsrc2/doc/minc_20.tex libsrc2/test/grpattr-test.c
diffstat 2 files changed, 48 insertions(+), 30 deletions(-) [+]
line wrap: on
line diff
--- a/libsrc2/doc/minc_20.tex
+++ b/libsrc2/doc/minc_20.tex
@@ -2731,7 +2731,7 @@
 \begin{verbatim}
 NAME
 
-micreate_volume_image - 
+micreate_volume_image - create the actual image data for volume.
 
 SYNOPSIS
 
@@ -2803,6 +2803,27 @@
 MI_NOERROR if the call succeeds, or MI_ERROR if an error is detected.
 \end{verbatim}
 
+\subsection{miget\_volume\_voxel\_count}
+\begin{verbatim}
+NAME
+
+miget_volume_voxel_count - get the number of voxels in the volume.
+SYNOPSIS
+
+#include <minc2.h>
+
+int miget_volume_voxel_count ( mihandle_t           volume, 
+                               int                  *number_of_voxels );
+
+DESCRIPTION
+
+This function returns the number of voxels in the volume.
+
+RETURN VALUE
+
+MI_NOERROR if the call succeeds, or MI_ERROR if an error is detected.
+\end{verbatim}
+
 \subsection{miopen\_volume}
 \begin{verbatim}
 NAME
--- a/libsrc2/test/grpattr-test.c
+++ b/libsrc2/test/grpattr-test.c
@@ -217,36 +217,33 @@
 	TESTRPT("miget_attr_values failed", 0);
     }
 
-    {
-        char pathbuf[256];
-        char namebuf[256];
-	int count=0;
-        r = milist_start(hvol, "/", 1, &hlist);
-        if (r == MI_NOERROR) {
-	  count++;
-            while (milist_attr_next(hvol, hlist, pathbuf, sizeof(pathbuf),
-                                    namebuf, sizeof(namebuf)) == MI_NOERROR) {
-                printf(" %s %s\n", pathbuf, namebuf);
-            }
-        }
-        milist_finish(hlist);
-
-	printf("***************** \n");
-
-	char pathbuf1[256];
-        
-        r = milist_start(hvol, "/", 1, &h1list);
-        if (r == MI_NOERROR) {
-	  while( milist_grp_next(h1list, pathbuf1, sizeof(pathbuf1)) == MI_NOERROR) {
-	      printf("%s \n", pathbuf1);
-	  }
-   
-        }
+    char pathbuf[256];
+    char namebuf[256];
+    int count=0;
+    r = milist_start(hvol, "/", 1, &hlist);
+    if (r == MI_NOERROR) {
+      count++;
+      while (milist_attr_next(hvol, hlist, pathbuf, sizeof(pathbuf),
+			      namebuf, sizeof(namebuf)) == MI_NOERROR) {
+	printf(" %s %s\n", pathbuf, namebuf);
+      }
+    }
+    milist_finish(hlist);
+    
+    printf("***************** \n");
+    
+    char pathbuf1[256];
+    
+    r = milist_start(hvol, "/", 1, &h1list);
+    if (r == MI_NOERROR) {
+      while( milist_grp_next(h1list, pathbuf1, sizeof(pathbuf1)) == MI_NOERROR) {
+	printf("%s \n", pathbuf1);
+      }
+      
+    }
+    
+    milist_finish(h1list);
 	
-        milist_finish(h1list);
-	
-    }
-
     miclose_volume(hvol);
 
     if (error_cnt != 0) {