Revision b212fba208df4f7184efa63b6c037d998ab18cd5 authored by Brad King on 02 March 2021, 13:45:37 UTC, committed by Kitware Robot on 02 March 2021, 13:45:59 UTC
fb4b2ed0d3 FindOpenGL: handle GLX without GLVND

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !5861
2 parent s f957966 + fb4b2ed
Raw File
print_stdin.c
#include <stdio.h>

int main()
{
  char buf[1024];
  size_t nIn = sizeof(buf);
  while (nIn == sizeof(buf)) {
    nIn = fread(buf, 1, sizeof(buf), stdin);
    if (nIn > 0) {
      size_t nOut;
      nOut = fwrite(buf, 1, nIn, stdout);
      if (nOut != nIn) {
        return 1;
      }
    }
  }
  return 0;
}
back to top