<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to Using</title><link>https://sourceforge.net/p/diskinfo-di/wiki/Using/</link><description>Recent changes to Using</description><atom:link href="https://sourceforge.net/p/diskinfo-di/wiki/Using/feed" rel="self"/><language>en</language><lastBuildDate>Sat, 24 Jan 2026 20:03:10 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/diskinfo-di/wiki/Using/feed" rel="self" type="application/rss+xml"/><item><title>Using modified by Brad Lanam</title><link>https://sourceforge.net/p/diskinfo-di/wiki/Using/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Brad Lanam</dc:creator><pubDate>Sat, 24 Jan 2026 20:03:10 -0000</pubDate><guid>https://sourceforge.net7c422e2ba765a1868f4b9e7e876be47bee0d76e7</guid></item><item><title>Using modified by Brad Lanam</title><link>https://sourceforge.net/p/diskinfo-di/wiki/Using/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Brad Lanam</dc:creator><pubDate>Fri, 23 Jan 2026 18:09:47 -0000</pubDate><guid>https://sourceforge.neta2913bdee0701241ba50c0309486db192d88cb57</guid></item><item><title>Using modified by Brad Lanam</title><link>https://sourceforge.net/p/diskinfo-di/wiki/Using/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v45
+++ v46
@@ -7,6 +7,8 @@
 If you want to check the disk space for a particular partition, do not search through all of the partitions and try to figure out which partition is the correct one.

 Instead, specify a filename or directory name. _di_ will resolve any symbolic links and determine the actual partition where the file resides.  This works when your system administrator has moved a directory to a different partition and created a symlink to the new location.
+
+This code can be found in the examples directory (.../share/di/examples)

     /* this code is in the public domain */
     #include &amp;lt;stdio.h&amp;gt;
@@ -67,13 +69,18 @@

     int
     main (int argc, char *argv []) {
-      const char  *fn = "/home/bll/s/di";
+      const char  *fn = NULL;
       double      spwant = 0.2;   /* terabytes */
       bool        rval;

       if (argc &amp;gt; 1) {
         fn = argv [1];
       }
+      if (fn == NULL) {
+        fprintf (stderr, "Usage: %s &amp;lt;path&amp;gt; [&amp;lt;space-wanted&amp;gt;]\n", argv [0]);
+        exit (1);
+      }
+
       if (argc &amp;gt; 2) {
         spwant = atof (argv [2]);
       }
@@ -95,14 +102,13 @@
     pcpath=${dilibd}/pkgconfig
     diinc=$(PKG_CONFIG_PATH=${pcpath} pkg-config --cflags di)
     dilibs=$(PKG_CONFIG_PATH=${pcpath} pkg-config --libs di)
-    cc -o tt ${diinc} tt.c -Wl,-rpath=${dilibd} ${dilibs}     # gcc
-    cc -o tt ${diinc} tt.c -rpath ${dilibd} ${dilibs}         # clang
+    cc -o diex ${diinc} diex.c ${dilibs}

 Example run:

-    bll-g7:bll$ ./tt /home/bll 0.5
+    bll-g7:bll$ ./diex /home/bll 2.0
     Not enough disk space
-    bll-g7:bll$ ./tt /home/bll 0.1
+    bll-g7:bll$ ./diex /home/bll 0.1
     Enough disk space
     bll-g7:bll$

&amp;lt;/space-wanted&amp;gt;&amp;lt;/path&amp;gt;&amp;lt;/stdio.h&amp;gt;&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Brad Lanam</dc:creator><pubDate>Fri, 23 Jan 2026 18:03:18 -0000</pubDate><guid>https://sourceforge.netbe882ad2234c052bd244da61a96e489498713efd</guid></item><item><title>Using modified by Brad Lanam</title><link>https://sourceforge.net/p/diskinfo-di/wiki/Using/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Brad Lanam</dc:creator><pubDate>Sat, 03 Jan 2026 15:32:49 -0000</pubDate><guid>https://sourceforge.net68c42cf2857ee91fdb0837ff033d4b695f1efc39</guid></item><item><title>Using modified by Brad Lanam</title><link>https://sourceforge.net/p/diskinfo-di/wiki/Using/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Brad Lanam</dc:creator><pubDate>Mon, 10 Nov 2025 18:27:02 -0000</pubDate><guid>https://sourceforge.netec28ee9cf00e8c20435751f56d5ed8c59de25f77</guid></item><item><title>Using modified by Brad Lanam</title><link>https://sourceforge.net/p/diskinfo-di/wiki/Using/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Brad Lanam</dc:creator><pubDate>Wed, 05 Nov 2025 16:41:47 -0000</pubDate><guid>https://sourceforge.neta2b126b26ae0e3af21eaa8448514b2cd816fc63c</guid></item><item><title>Using modified by Brad Lanam</title><link>https://sourceforge.net/p/diskinfo-di/wiki/Using/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Brad Lanam</dc:creator><pubDate>Mon, 03 Nov 2025 15:41:43 -0000</pubDate><guid>https://sourceforge.netb8eda895ed6c15dd1670a2ced5e491a4536d85c3</guid></item><item><title>Using modified by Brad Lanam</title><link>https://sourceforge.net/p/diskinfo-di/wiki/Using/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Brad Lanam</dc:creator><pubDate>Mon, 03 Nov 2025 15:38:08 -0000</pubDate><guid>https://sourceforge.net3d0686a9d835a5d514dd2612797d2983bcbba757</guid></item><item><title>Using modified by Brad Lanam</title><link>https://sourceforge.net/p/diskinfo-di/wiki/Using/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Brad Lanam</dc:creator><pubDate>Thu, 09 Oct 2025 12:27:44 -0000</pubDate><guid>https://sourceforge.net40eeb6e49f84336d24c5ec8d9b127f779120be52</guid></item><item><title>Using modified by Brad Lanam</title><link>https://sourceforge.net/p/diskinfo-di/wiki/Using/</link><description>&lt;div class="markdown_content"&gt;&lt;pre&gt;--- v38
+++ v39
@@ -36,12 +36,19 @@
       targv [1] = NULL;

       di_data = di_initialize ();
+
       exitflag = di_process_options (di_data, targc, targv, 0);
       if (exitflag != DI_EXIT_NORM) {
         di_cleanup (di_data);
         exit (exitflag);
       }
-      di_get_all_disk_info (di_data);
+
+      exitflag = di_get_all_disk_info (di_data);
+      if (exitflag != DI_EXIT_NORM) {
+        di_cleanup (di_data);
+        exit (exitflag);
+      }
+
       count = di_iterate_init (di_data, DI_ITER_PRINTABLE);
       while ((pub = di_iterate (di_data)) != NULL) {
         double    dval;
&lt;/pre&gt;
&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Brad Lanam</dc:creator><pubDate>Mon, 10 Mar 2025 18:54:02 -0000</pubDate><guid>https://sourceforge.net5cd42c40fcd8d5da5f20ea200dabbcba843c8a30</guid></item></channel></rss>