<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>XuHuang</author_name>
  <author_url>https://blog.hatena.ne.jp/XuHuang/</author_url>
  <blog_title>Ｃ初心者がLinuxエンジニアを目指す日記</blog_title>
  <blog_url>https://xuhuang.hatenadiary.org/</blog_url>
  <categories>
    <anon>UNIXプログラミング</anon>
  </categories>
  <description>#include #include &quot;ourhdr.h&quot; int main(void) { off_t res; /* 現在の位置から0バイトシークすることにより、カレントオフセットを取得する。 * lseek()はパイプやFIFOを参照するファイルディスクリプタに対しては-1を返し * てerrnoを設定する。 */ res = lseek(STDIN_FILENO, 0, SEEK_CUR); if (res == -1) { /* 参照しているファイルはシーク出来ない */ printf(&quot;cannot seek\n&quot;); } else { printf(&quot;seek OK: offset…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fxuhuang.hatenadiary.org%2Fentry%2F20070820%2F1187621595&quot; title=&quot; 3.1 標準入力がシーク可能かどうか調べる - Ｃ初心者がLinuxエンジニアを目指す日記&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2007-08-20 23:53:15</published>
  <title> 3.1 標準入力がシーク可能かどうか調べる</title>
  <type>rich</type>
  <url>https://xuhuang.hatenadiary.org/entry/20070820/1187621595</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
