<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    Hi,<br>
    <br>
    <div class="moz-cite-prefix">On 2021-01-28 6:40 a.m., Thiago
      Milczarek SayĆ£o wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAAP_wukZQ_DiS3YRKYdy-ciJf289KbHKXHBQORxd9zZ3EWvvUQ@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div>Warning: Might be a stupid question.</div>
        <div><br>
        </div>
        <div>const SANE_Device **dev_list;</div>
        <div><span class="gmail-pl-smi">sane_get_devices(&dev_list,
            SANE_FALSE);</span></div>
        <div><span class="gmail-pl-smi"><br>
          </span></div>
        <div><span class="gmail-pl-smi">How do I get the size of
            dev_list?<br>
          </span></div>
        <div><span class="gmail-pl-smi"><br>
          </span></div>
        <div><span class="gmail-pl-smi">Thanks.<br>
          </span></div>
      </div>
    </blockquote>
    <br>
    There is no length parameter.<br>
    If you just wish to count the devices, loop through it until you get
    to a NULL pointer.<br>
    <br>
    You can find an example in the SANE backends source for scanimage:
    frontend/scanimage.c around line 2184.<br>
    <br>
    Have you read the SANE API spec?<br>
    If not, it is here:<br>
    <br>
    <a class="moz-txt-link-freetext" href="https://sane-project.gitlab.io/standard/">https://sane-project.gitlab.io/standard/</a><br>
    <br>
    Cheers,<br>
    Ralph<br>
  </body>
</html>