social.senooken.jp
type: Site
name: senooken JP Social
space of: include

include
type: Container
type: channel
description: Updates tagged with include on senooken JP Social!
licence: https://creativecommons.org/licenses/by/3.0/
items: https://mastodon.zunda.ninja/users/zundan/statuses/108755925720558127
items: Heislandmine: #include<tintin.h>
items: noellabo: #include <misskey.io>
items: yakitama: #include<stdio.h>
items: https://mastodon.zunda.ninja/users/zundan/statuses/107697797253162375
items: acid_rain: #include <stdio.h> // おまじない
items: lo48576: #include <io.h>
items: ym: #include<stdio.h>int main(void)｛printf("ちんぽ");｝
items: senooken: C言語の構造体がわからない。 #include <time.h> struct tm t = {0}; 構造体変数はアドレスなのか？tと&tは違うの？配列だと、変数名はアドレスなんだけど、構造体はどうだったけ。
items: https://ippandon.hopto.org/users/whtapple/statuses/106250239786250737
items: sonota88: グローバル定数はこれでよいので、プリプロセッサでは #include 相当の処理だけやれば良さそう
items: https://mastodon.cardina1.red/users/lo48576/statuses/104562387847466575
items: hswugbhxwsz: #include とか #define で検索するとC言語の学習できるのでおすすめ(？)
items: jordyd: trending among C programmers: - #include - #ifdef - #endif
items: https://mastodon.zunda.ninja/users/zundan/statuses/101457577531404619
items: https://gamelinks007.net/users/S_H_/statuses/101200299908538494
items: ahiru: もぐのさんのサンプルコード見てひらめいた バズらないコード #include <stdio.h> int main() { for (int i = 0; i < 20; ++i) { if (i % 3 == 0) { printf("fizz\n"); } else { printf("%d\n"); } } return 0; }
items: https://social.mikutter.hachune.net/users/tsutsuii/statuses/101087313404575240
items: yakitama: #include <stdio.h>int main ( void ) { printf("Hello, Chieri Ogata.\n"); return 0; }
items: inabajunmrrrrrrrr: 大学のプログラミングの授業数学の要素が強すぎて数学力足りなくて速攻リタイヤした#include <stdio.h> は呪文だから無視して良い、みたいな話してたのは覚えてる
items: https://social.mikutter.hachune.net/users/tsutsuii/statuses/100813874397330668
items: jkr2255: #include や #define、#pragma がハッシュタグ化しているのも見かける。
items: unarist: #include のタグTLで色んな人のコードを眺める
items: objectType=note
items: https://mastodon.zunda.ninja/users/zundan/statuses/100745505620269514
items: https://mastodon.zunda.ninja/users/zundan/statuses/100745439921474837
items: kkamiyama: @kiki #include <stdio.h> void jp_kimoi() { printf("jpキモいよぉ…\n"); jp_kimoi(); } int main() { jp_kimoi(); }
items: yumetodo: はろーやーやーみなさん と迷ったけど、ここはいつものありきたりなほうで行ってみた。```cpp #include <iostream> int main() { std::cout << "arikitari_na_sekai" << std::endl; } ```
items: sh@gamelinks007.net: #include <iostream>int main(){ std::cout << "Hello C++"; return 0; }これが

https://mastodon.zunda.ninja/users/zundan/statuses/108755925720558127
type: item
type: MicroblogPost
title: zundan: ドドスコ投稿したいのでT-Mobileにテザリングしましたよ。Cでの配列の書き方を忘れてたw#include <stdio.h> #include <stdlib.h> #include <time.h>int main(void) { time_t t; unsigned int h = 0; char *ds[] = {"スコ", "ドド"}; char *love = "ラブ注入♡"; srand((unsigned) time(&t)); while(h != 0x888) { h = rand() % 2 + (h * 2) & 0xFFF; printf("%s", ds[h & 1]); } puts(love); return EXIT_SUCCESS; }
link: https://social.senooken.jp/notice/4421190
description: zundan's status on Wednesday, 03-Aug-2022 11:56:18 JST
encoded: ドドスコ投稿したいのでT-Mobileにテザリングしましたよ。Cでの配列の書き方を忘れてたw #include <stdio.h> #include <stdlib.h> #include <time.h> int main(void) { time_t t; unsigned int h = 0; char *ds[] = {"スコ", "ドド"}; char *love = "ラブ注入♡"; srand((unsigned) time(&t)); while(h != 0x888) { h = rand() % 2 + (h * 2) & 0xFFF; printf("%s", ds[h & 1]); } puts(love); return EXIT_SUCCESS; }
date: 2022-08-03T11:56:18+09:00
creator: zunda
has creator: acct
licence: https://creativecommons.org/licenses/by/3.0/
has discussion: https://social.senooken.jp/conversation/3250786
tagged: concept

concept
type: Tag
label: include

Heislandmine: #include<tintin.h>
type: item
type: MicroblogPost
link: https://social.senooken.jp/notice/4257329
description: Heislandmine's status on Thursday, 17-Mar-2022 13:19:30 JST
encoded: #include<tintin.h>
date: 2022-03-17T13:19:30+09:00
creator: がくかんせつしょう
has creator: acct
licence: https://creativecommons.org/licenses/by/3.0/
has discussion: https://social.senooken.jp/conversation/3115987
tagged: concept

noellabo: #include <misskey.io>
type: item
type: MicroblogPost
link: https://social.senooken.jp/notice/4214908
description: noellabo's status on Monday, 21-Feb-2022 19:07:48 JST
encoded: #include <misskey.io>
date: 2022-02-21T19:07:48+09:00
creator: のえる
has creator: acct
licence: https://creativecommons.org/licenses/by/3.0/
has discussion: https://social.senooken.jp/conversation/3080058
tagged: concept

yakitama: #include<stdio.h>
type: item
type: MicroblogPost
link: https://social.senooken.jp/notice/4207630
description: yakitama's status on Thursday, 17-Feb-2022 11:06:23 JST
encoded: #include<stdio.h>
date: 2022-02-17T11:06:23+09:00
creator: やきたまちゃんはおしまい！
has creator: acct
licence: https://creativecommons.org/licenses/by/3.0/
has discussion: https://social.senooken.jp/conversation/3073913
tagged: concept

https://mastodon.zunda.ninja/users/zundan/statuses/107697797253162375
type: item
type: MicroblogPost
title: zundan: $ cat shuffle.c #include <stdlib.h>#include <stdio.h>#include <ctype.h>#include <time.h>#define utf8_head(c) (((c) & 0xC0) != 0x80)intmain(void){ char input[BUFSIZ], *runes[BUFSIZ]; char output[BUFSIZ]; size_t len, i, j; char *ptr; fgets(input, sizeof(input), stdin); fclose(stdin); ptr = input; while(*ptr) { if (utf8_head(*ptr) && *ptr != '\n') { runes[len] = ptr; len++; } ptr++; } srand((unsigned)time(NULL)); for(i = 0; i < len - 1; i++) { j = i + rand() % (len - i); ptr = runes[j]; runes[j] = runes[i]; runes[i] = ptr; } ptr = output; for(i = 0, ptr = output; i < len; i++) { j = 0; do { *ptr = *(runes[i] + j); j++; ptr++; } while(!utf8_head(*(runes[i] + j))); } *ptr = '\n'; *(ptr + 1) = '\0'; fputs(output, stdout); return EXIT_SUCCESS;}$ gcc -Wall shuffle.c && echo ねむいね | ./a.outいむねねむっちゃ長くなったw
link: https://social.senooken.jp/notice/4174352
description: zundan's status on Friday, 28-Jan-2022 11:47:51 JST
encoded: $ cat shuffle.c #include <stdlib.h>#include <stdio.h>#include <ctype.h>#include <time.h> #define utf8_head(c) (((c) & 0xC0) != 0x80) intmain(void){ char input[BUFSIZ], *runes[BUFSIZ]; char output[BUFSIZ]; size_t len, i, j; char *ptr; fgets(input, sizeof(input), stdin); fclose(stdin); ptr = input; while(*ptr) { if (utf8_head(*ptr) && *ptr != '\n') { runes[len] = ptr; len++; } ptr++; } srand((unsigned)time(NULL)); for(i = 0; i < len - 1; i++) { j = i + rand() % (len - i); ptr = runes[j]; runes[j] = runes[i]; runes[i] = ptr; } ptr = output; for(i = 0, ptr = output; i < len; i++) { j = 0; do { *ptr = *(runes[i] + j); j++; ptr++; } while(!utf8_head(*(runes[i] + j))); } *ptr = '\n'; *(ptr + 1) = '\0'; fputs(output, stdout); return EXIT_SUCCESS;}$ gcc -Wall shuffle.c && echo ねむいね | ./a.outいむねね むっちゃ長くなったw
date: 2022-01-28T11:47:51+09:00
creator: zunda
has creator: acct
licence: https://creativecommons.org/licenses/by/3.0/
has discussion: https://social.senooken.jp/conversation/3045737
tagged: concept

acid_rain: #include <stdio.h> // おまじない
type: item
type: MicroblogPost
link: https://social.senooken.jp/notice/4171412
description: acid_rain's status on Wednesday, 26-Jan-2022 18:50:33 JST
encoded: #include <stdio.h> // おまじない
date: 2022-01-26T18:50:33+09:00
creator: 酸性雨
has creator: acct
licence: https://creativecommons.org/licenses/by/3.0/
has discussion: https://social.senooken.jp/conversation/3043261
tagged: concept

lo48576: #include <io.h>
type: item
type: MicroblogPost
link: https://social.senooken.jp/notice/3872811
description: lo48576's status on Monday, 16-Aug-2021 21:07:28 JST
encoded: #include <io.h>
date: 2021-08-16T21:07:28+09:00
creator: らりお・ザ・何らかの🈗然㊌ソムリエ
has creator: acct
licence: https://creativecommons.org/licenses/by/3.0/
has discussion: https://social.senooken.jp/conversation/2794613
tagged: concept

ym: #include<stdio.h>int main(void)｛printf("ちんぽ");｝
type: item
type: MicroblogPost
link: https://social.senooken.jp/notice/3791386
description: ym's status on Tuesday, 13-Jul-2021 15:50:33 JST
encoded: #include<stdio.h>int main(void)｛ printf("ちんぽ"); ｝
date: 2021-07-13T15:50:33+09:00
creator: ゆめぴょい伝説🍚
has creator: acct
licence: https://creativecommons.org/licenses/by/3.0/
has discussion: https://social.senooken.jp/conversation/2727460
tagged: concept

senooken: C言語の構造体がわからない。 #include <time.h> struct tm t = {0}; 構造体変数はアドレスなのか？tと&tは違うの？配列だと、変数名はアドレスなんだけど、構造体はどうだったけ。
type: item
type: MicroblogPost
link: https://social.senooken.jp/notice/3748700
description: senooken's status on Tuesday, 22-Jun-2021 10:48:29 JST
encoded: C言語の構造体がわからない。 #include <time.h> struct tm t = {0}; 構造体変数はアドレスなのか？tと&tは違うの？配列だと、変数名はアドレスなんだけど、構造体はどうだったけ。
date: 2021-06-22T10:48:29+09:00
creator: せのお (妹尾 賢)
maker: せのお (妹尾 賢)
has creator: acct
licence: https://creativecommons.org/licenses/by/3.0/
has discussion: https://social.senooken.jp/conversation/2692002
tagged: concept

https://ippandon.hopto.org/users/whtapple/statuses/106250239786250737
type: item
type: MicroblogPost
title: whtapple: work/ruby-3.0.1/internal/bits.h が #include <x86intrin.h> してないせいと判明。#if defined(HAVE_X86INTRIN_H) && ! defined(MJIT_HEADER)# /* Rule out MJIT_HEADER, which does not interface well with <immintrin.h> */# include <x86intrin.h> /* for _lzcnt_u64 */#elif MSC_VERSION_SINCE(1310)# include <intrin.h> /* for the following intrinsics */#endif条件つきで #include するやう書かれてるけど, FreeBSD 13.0R標準のclang 11.0.1だと，この条件に合わずスルーしてまった。
link: https://social.senooken.jp/notice/3672428
description: whtapple's status on Monday, 17-May-2021 20:13:18 JST
encoded: work/ruby-3.0.1/internal/bits.h が #include <x86intrin.h> してないせいと判明。 #if defined(HAVE_X86INTRIN_H) && ! defined(MJIT_HEADER)# /* Rule out MJIT_HEADER, which does not interface well with <immintrin.h> */# include <x86intrin.h> /* for _lzcnt_u64 */#elif MSC_VERSION_SINCE(1310)# include <intrin.h> /* for the following intrinsics */#endif 条件つきで #include するやう書かれてるけど, FreeBSD 13.0R標準のclang 11.0.1だと，この条件に合わずスルーしてまった。
date: 2021-05-17T20:13:18+09:00
creator: 白林檎美和@一般丼。
has creator: acct
licence: https://creativecommons.org/licenses/by/3.0/
reply of: https://social.senooken.jp/notice/3651384
has discussion: https://social.senooken.jp/conversation/2610902
tagged: concept

sonota88: グローバル定数はこれでよいので、プリプロセッサでは #include 相当の処理だけやれば良さそう
type: item
type: MicroblogPost
link: https://social.senooken.jp/notice/3422485
description: sonota88's status on Wednesday, 03-Feb-2021 08:17:56 JST
encoded: グローバル定数はこれでよいので、プリプロセッサでは #include 相当の処理だけやれば良さそう
date: 2021-02-03T08:17:56+09:00
creator: sonota88
has creator: acct
licence: https://creativecommons.org/licenses/by/3.0/
reply of: https://social.senooken.jp/notice/3422484
has discussion: https://social.senooken.jp/conversation/2422346
tagged: concept

https://mastodon.cardina1.red/users/lo48576/statuses/104562387847466575
type: item
type: MicroblogPost
title: lo48576: Sudo Stable Releasehttps://www.sudo.ws/stable.html#1.9.1> The @ include and @ includedir directives can be used in sudoers instead of #include and #includedir. In addition, include paths may now have embedded white space by either using a double-quoted string or escaping the space characters with a backslash.1.9.1 で入った変更らしい
link: https://social.senooken.jp/notice/2752262
description: lo48576's status on Thursday, 23-Jul-2020 18:10:49 JST
encoded: Sudo Stable Releasehttps://www.sudo.ws/stable.html#1.9.1 > The @ include and @ includedir directives can be used in sudoers instead of #include and #includedir. In addition, include paths may now have embedded white space by either using a double-quoted string or escaping the space characters with a backslash. 1.9.1 で入った変更らしい
date: 2020-07-23T18:10:49+09:00
creator: らりお・ザ・何らかの🈗然㊌ソムリエ
has creator: acct
licence: https://creativecommons.org/licenses/by/3.0/
reply of: https://social.senooken.jp/notice/2752251
has discussion: https://social.senooken.jp/conversation/1914187
tagged: concept

concept
type: Tag
label: includedir

hswugbhxwsz: #include とか #define で検索するとC言語の学習できるのでおすすめ(？)
type: item
type: MicroblogPost
link: https://social.senooken.jp/notice/2751165
description: hswugbhxwsz's status on Thursday, 23-Jul-2020 11:33:49 JST
encoded: #include とか #define で検索するとC言語の学習できるのでおすすめ(？)
date: 2020-07-23T11:33:49+09:00
creator: RHEL
has creator: acct
licence: https://creativecommons.org/licenses/by/3.0/
has discussion: https://social.senooken.jp/conversation/1913551
tagged: concept

concept
type: Tag
label: define

https://freespeechextremist.com/objects/8b8b0f1c-ca70-445f-acb4-6bd1f50c93fb
type: item
type: MicroblogPost
title: p: @TerminalState File sizes just got bigger. The true future is bytebeat, though. A song of arbitrary length in a paltry 256 bytes of C that generates a raw 16-bit PCM stream, stereo, 44.1kHz, right to standard output. #include <unistd.h> short nx(long t) { return ((t<<2)|((~(t>>1)&0x1ff)*(0x1ff&(0xb494afeba585585aL)>>(((t>>14)^(t>>21))%56)))) /**/; } int main(int argc, char **argv) { long t; short r; for(t=0;;t++) { r = nx(t); write(1, &r, sizeof(r)); } }
link: https://social.senooken.jp/notice/2539380
description: p's status on Saturday, 21-Sep-2019 06:32:22 JST
encoded: @TerminalState File sizes just got bigger. The true future is bytebeat, though. A song of arbitrary length in a paltry 256 bytes of C that generates a raw 16-bit PCM stream, stereo, 44.1kHz, right to standard output. #include <unistd.h> short nx(long t) { return ((t<<2)|((~(t>>1)&0x1ff)*(0x1ff&(0xb494afeba585585aL)>>(((t>>14)^(t>>21))%56)))) /**/; } int main(int argc, char **argv) { long t; short r; for(t=0;;t++) { r = nx(t); write(1, &r, sizeof(r)); } }
date: 2019-09-21T06:32:22+09:00
creator: p
has creator: acct
licence: https://creativecommons.org/licenses/by/3.0/
has discussion: https://social.senooken.jp/conversation/1781896
tagged: concept

jordyd: trending among C programmers: - #include - #ifdef - #endif
type: item
type: MicroblogPost
link: https://social.senooken.jp/notice/2354379
description: jordyd's status on Thursday, 02-May-2019 09:27:30 JST
encoded: trending among C programmers: - #include - #ifdef - #endif
date: 2019-05-02T09:27:30+09:00
creator: jorty
has creator: acct
licence: https://creativecommons.org/licenses/by/3.0/
has discussion: https://social.senooken.jp/conversation/1667848
tagged: concept

concept
type: Tag
label: endif

concept
type: Tag
label: ifdef

https://plr.ph3j.com/objects/75f346c4-2a1b-4224-8700-27f9b1691a0b
type: item
type: MicroblogPost
title: sumiyaki@plr.ph3j.com: 以下、元の文のつもり。 Markdownのテスト。 # があると、hashtagになってしまうか？ 改行はどうなるか？ [Twitterの使い勝手の悪さ、TwitterのCEOも認める](https://it.srad.jp/story/19/02/15/0730231/) ストーリー by hylom 2019年02月16日 7時00分いまさら 部門より ``` #include <stdio.h> int main(int argc, char *args[]) { printf("Hello, world!\n"); } ```
link: https://social.senooken.jp/notice/2213902
description: sumiyaki@plr.ph3j.com's status on Wednesday, 20-Feb-2019 04:31:20 JST
encoded: 以下、元の文のつもり。 Markdownのテスト。 # があると、hashtagになってしまうか？ 改行はどうなるか？ [Twitterの使い勝手の悪さ、TwitterのCEOも認める](https://it.srad.jp/story/19/02/15/0730231/) ストーリー by hylom 2019年02月16日 7時00分いまさら 部門より ``` #include <stdio.h> int main(int argc, char *args[]) { printf("Hello, world!\n"); } ```
date: 2019-02-20T04:31:20+09:00
creator: sumiyaki
has creator: acct
licence: https://creativecommons.org/licenses/by/3.0/
reply of: https://social.senooken.jp/notice/2213899
has discussion: https://social.senooken.jp/conversation/1570721
enclosure: Twitterの使い勝手の悪さ、TwitterのCEOも認める | スラド IT
links to: Twitterの使い勝手の悪さ、TwitterのCEOも認める | スラド IT
tagged: concept

Twitterの使い勝手の悪さ、TwitterのCEOも認める | スラド IT
date: 0001-11-30T09:18:59+09:18
type: text/html; charset=utf-8

https://plr.ph3j.com/objects/32894b34-bad7-49be-8f32-9213d5aa2fcd
type: item
type: MicroblogPost
title: sumiyaki@plr.ph3j.com: Markdownのテスト。があると、hashtagになってしまうか？改行はどうなるか？Twitterの使い勝手の悪さ、TwitterのCEOも認めるストーリー by hylom 2019年02月16日 7時00分いまさら 部門より#include <stdio.h>int main(int argc, char *args[]){ printf("Hello, world!\n");}
link: https://social.senooken.jp/notice/2213899
description: sumiyaki@plr.ph3j.com's status on Wednesday, 20-Feb-2019 04:28:37 JST
encoded: Markdownのテスト。 があると、hashtagになってしまうか？ 改行はどうなるか？ Twitterの使い勝手の悪さ、TwitterのCEOも認めるストーリー by hylom 2019年02月16日 7時00分いまさら 部門より #include <stdio.h>int main(int argc, char *args[]){ printf("Hello, world!\n");}
date: 2019-02-20T04:28:37+09:00
creator: sumiyaki
has creator: acct
licence: https://creativecommons.org/licenses/by/3.0/
has discussion: https://social.senooken.jp/conversation/1570721
tagged: concept

https://mastodon.zunda.ninja/users/zundan/statuses/101457577531404619
type: item
type: MicroblogPost
title: zundan@mastodon.zunda.ninja: やっぱりfork爆弾になりそう$ cat bumb.c #include <unistd.h> #include <stdio.h>int main(void) { int n; int pid; while (pid == 0 && n < 3) { n++; pid = fork(); } printf("pid=%d\n", pid); return 0; } $ gcc bumb.c && ./a.out pid=26320 pid=26321 pid=26322 pid=0
link: https://social.senooken.jp/notice/2056097
description: zundan@mastodon.zunda.ninja's status on Tuesday, 22-Jan-2019 10:16:15 JST
encoded: やっぱりfork爆弾になりそう $ cat bumb.c #include <unistd.h> #include <stdio.h> int main(void) { int n; int pid; while (pid == 0 && n < 3) { n++; pid = fork(); } printf("pid=%d\n", pid); return 0; } $ gcc bumb.c && ./a.out pid=26320 pid=26321 pid=26322 pid=0
date: 2019-01-22T10:16:15+09:00
creator: zunda ? nはおまけ :green_dango:
has creator: acct
licence: https://creativecommons.org/licenses/by/3.0/
has discussion: https://social.senooken.jp/conversation/1458870
tagged: concept

ivesen: @fence shouldn't it just do that when you use #include <> ?
type: item
type: MicroblogPost
link: https://social.senooken.jp/notice/1847144
description: ivesen's status on Friday, 28-Dec-2018 10:21:21 JST
encoded: @fence shouldn't it just do that when you use #include <> ?
date: 2018-12-28T10:21:21+09:00
creator: tsumiki :blabcatverified:
has creator: acct
licence: https://creativecommons.org/licenses/by/3.0/
has discussion: https://social.senooken.jp/conversation/1305932
tagged: concept

https://gamelinks007.net/users/S_H_/statuses/101200299908538494
type: item
type: MicroblogPost
title: sh@gamelinks007.net: お、templateにラムダ式渡してthreadでよしなにできた？#include <iostream> #include <future> #include <array> #include <functional>template <typename T, typename F> void func(const T& t, F&& f) { f(t); }int main() { std::array<std::thread, 9> th_array; std::function<void(int)> f = [](int i){std::cout << i;}; for(int i =0; i < 9; i++) th_array[i] = std::thread(func<int, decltype(f)>, i, f); for(auto&& t : th_array) t.join(); return 0; }
link: https://social.senooken.jp/notice/1636756
description: sh@gamelinks007.net's status on Friday, 07-Dec-2018 23:47:09 JST
encoded: お、templateにラムダ式渡してthreadでよしなにできた？ #include <iostream> #include <future> #include <array> #include <functional> template <typename T, typename F> void func(const T& t, F&& f) { f(t); } int main() { std::array<std::thread, 9> th_array; std::function<void(int)> f = [](int i){std::cout << i;}; for(int i =0; i < 9; i++) th_array[i] = std::thread(func<int, decltype(f)>, i, f); for(auto&& t : th_array) t.join(); return 0; }
date: 2018-12-07T23:47:09+09:00
creator: S.H.
has creator: acct
licence: https://creativecommons.org/licenses/by/3.0/
has discussion: https://social.senooken.jp/conversation/1151535
tagged: concept

ahiru: もぐのさんのサンプルコード見てひらめいた バズらないコード #include <stdio.h> int main() { for (int i = 0; i < 20; ++i) { if (i % 3 == 0) { printf("fizz\n"); } else { printf("%d\n"); } } return 0; }
type: item
type: MicroblogPost
link: https://social.senooken.jp/notice/1585776
description: ahiru's status on Monday, 03-Dec-2018 21:50:57 JST
encoded: もぐのさんのサンプルコード見てひらめいた バズらないコード #include <stdio.h> int main() { for (int i = 0; i < 20; ++i) { if (i % 3 == 0) { printf("fizz\n"); } else { printf("%d\n"); } } return 0; }
date: 2018-12-03T21:50:57+09:00
creator: 焼野原ひろし
has creator: acct
licence: https://creativecommons.org/licenses/by/3.0/
has discussion: https://social.senooken.jp/conversation/1114996
tagged: concept

https://social.mikutter.hachune.net/users/tsutsuii/statuses/101087313404575240
type: item
type: MicroblogPost
title: tsutsuii: % gcc -v : gcc version 5.5.0 (nb2 20180327) % cat > test.c #include <stdio.h> int main(){printf("Hello World.\n");} % cc test.c cc1: internal compiler error: Illegal instruction no stack trace because unwind library not available Please submit a full bug report, with preprocessed source if appropriate. See <http://www.NetBSD.org/support/send-pr.html> for instructions. % 悲しいなあ（このバグに誰も気づいていないということが）
link: https://social.senooken.jp/notice/1411720
description: tsutsuii's status on Sunday, 18-Nov-2018 00:53:12 JST
encoded: % gcc -v : gcc version 5.5.0 (nb2 20180327) % cat > test.c #include <stdio.h> int main(){printf("Hello World.\n");} % cc test.c cc1: internal compiler error: Illegal instruction no stack trace because unwind library not available Please submit a full bug report, with preprocessed source if appropriate. See <http://www.NetBSD.org/support/send-pr.html> for instructions. % 悲しいなあ（このバグに誰も気づいていないということが）
date: 2018-11-18T00:53:12+09:00
creator: Izumi Tsutsui
has creator: acct
licence: https://creativecommons.org/licenses/by/3.0/
has discussion: https://social.senooken.jp/conversation/988234
enclosure: send-pr.html
links to: send-pr.html
tagged: concept

send-pr.html
date: 0001-11-30T09:18:59+09:18
length: 29451
type: text/html; charset=ISO-8859-1

yakitama: #include <stdio.h>int main ( void ) { printf("Hello, Chieri Ogata.\n"); return 0; }
type: item
type: MicroblogPost
link: https://social.senooken.jp/notice/912557
description: yakitama's status on Saturday, 06-Oct-2018 13:34:12 JST
encoded: #include <stdio.h> int main ( void ) { printf("Hello, Chieri Ogata.\n"); return 0; }
date: 2018-10-06T13:34:12+09:00
creator: やきたま :sabakan:
has creator: acct
licence: https://creativecommons.org/licenses/by/3.0/
has discussion: https://social.senooken.jp/conversation/634578
tagged: concept

inabajunmrrrrrrrr: 大学のプログラミングの授業数学の要素が強すぎて数学力足りなくて速攻リタイヤした#include <stdio.h> は呪文だから無視して良い、みたいな話してたのは覚えてる
type: item
type: MicroblogPost
link: https://social.senooken.jp/notice/873931
description: inabajunmrrrrrrrr's status on Wednesday, 03-Oct-2018 22:41:46 JST
encoded: 大学のプログラミングの授業数学の要素が強すぎて数学力足りなくて速攻リタイヤした #include <stdio.h> は呪文だから無視して良い、みたいな話してたのは覚えてる
date: 2018-10-03T22:41:46+09:00
creator: レンタルなんかする人
has creator: acct
licence: https://creativecommons.org/licenses/by/3.0/
has discussion: https://social.senooken.jp/conversation/607855
tagged: concept

https://social.mikutter.hachune.net/users/tsutsuii/statuses/100813874397330668
type: item
type: MicroblogPost
title: tsutsuii: ../../../../arch/newsmips/newsmips/news4000.c:54:21: error: variable 'news4000_ipl_sr_map' has initializer but incomplete type static const struct ipl_sr_map news4000_ipl_sr_map = { #include が足りない
link: https://social.senooken.jp/notice/817652
description: tsutsuii's status on Sunday, 30-Sep-2018 17:54:04 JST
encoded: ../../../../arch/newsmips/newsmips/news4000.c:54:21: error: variable 'news4000_ipl_sr_map' has initializer but incomplete type static const struct ipl_sr_map news4000_ipl_sr_map = { #include が足りない
date: 2018-09-30T17:54:04+09:00
creator: Izumi Tsutsui
has creator: acct
licence: https://creativecommons.org/licenses/by/3.0/
has discussion: https://social.senooken.jp/conversation/568169
tagged: concept

jkr2255: #include や #define、#pragma がハッシュタグ化しているのも見かける。
type: item
type: MicroblogPost
link: https://social.senooken.jp/notice/756467
description: jkr2255's status on Wednesday, 26-Sep-2018 23:12:38 JST
encoded: #include や #define、#pragma がハッシュタグ化しているのも見かける。
date: 2018-09-26T23:12:38+09:00
creator: jkr_2255
has creator: acct
licence: https://creativecommons.org/licenses/by/3.0/
has discussion: https://social.senooken.jp/conversation/525925
tagged: concept

concept
type: Tag
label: pragma

unarist: #include のタグTLで色んな人のコードを眺める
type: item
type: MicroblogPost
link: https://social.senooken.jp/notice/679988
description: unarist's status on Friday, 21-Sep-2018 20:41:08 JST
encoded: #include のタグTLで色んな人のコードを眺める
date: 2018-09-21T20:41:08+09:00
creator: unarist
has creator: acct
licence: https://creativecommons.org/licenses/by/3.0/
has discussion: https://social.senooken.jp/conversation/473167
tagged: concept

objectType=note
type: item
type: MicroblogPost
title: senooken: 今日詰まったこと。 C言語の引数のアドレスを変更できなかった。こんな感じで，引数に渡したポインターに別のポインターを渡して，出力結果を渡そうとしたのだけど，だめだった。memcpyしたらいけたのだけど。なぜダメなのかがわからなかった。アドレスを書き換えたらダメなんだったたっけ？いや，でも引数にポインターを渡してそれを書き換えるというのはよくやるだろう？なぜだろう。 ``` #include <stdio.h> #include <string.h> struct st { int a; int b; }; struct st stg = {1, 2}; void init( struct st *str) { str = NULL; printf("%d, %d\n", stg.a, stg.b ); // memcpy(str, &stg, sizeof(stg)); str = &stg } int main(void) { struct st st1 = {0}; printf("%d\n", st1.a); init( &st1 ); printf("%d\n", st1.a); return 0; } ```
link: https://social.senooken.jp/notice/639300
description: senooken's status on Tuesday, 18-Sep-2018 20:15:27 JST
encoded: 今日詰まったこと。 C言語の引数のアドレスを変更できなかった。こんな感じで，引数に渡したポインターに別のポインターを渡して，出力結果を渡そうとしたのだけど，だめだった。memcpyしたらいけたのだけど。なぜダメなのかがわからなかった。アドレスを書き換えたらダメなんだったたっけ？いや，でも引数にポインターを渡してそれを書き換えるというのはよくやるだろう？なぜだろう。 ``` #include <stdio.h> #include <string.h> struct st { int a; int b; }; struct st stg = {1, 2}; void init( struct st *str) { str = NULL; printf("%d, %d\n", stg.a, stg.b ); // memcpy(str, &stg, sizeof(stg)); str = &stg } int main(void) { struct st st1 = {0}; printf("%d\n", st1.a); init( &st1 ); printf("%d\n", st1.a); return 0; } ```
date: 2018-09-18T20:15:27+09:00
creator: せのお (妹尾 賢)
maker: せのお (妹尾 賢)
has creator: acct
licence: https://creativecommons.org/licenses/by/3.0/
has discussion: https://social.senooken.jp/conversation/445106
tagged: concept

https://mastodon.zunda.ninja/users/zundan/statuses/100745505620269514
type: item
type: MicroblogPost
title: zundan@mastodon.zunda.ninja: Cの文字列演算ちょっと気持ちわるいのあるよね（おかげでマクロが捗る）$ echo $LANG en_US.UTF-8 $ cat string.c #include <stdio.h> #include <stdlib.h>int main(void) { puts("それは" "そうかも" "しれないね"); return 0; } $ clang string.c && ./a.out それはそうかもしれないね
link: https://social.senooken.jp/notice/635310
description: zundan@mastodon.zunda.ninja's status on Tuesday, 18-Sep-2018 16:06:59 JST
encoded: Cの文字列演算ちょっと気持ちわるいのあるよね（おかげでマクロが捗る） $ echo $LANG en_US.UTF-8 $ cat string.c #include <stdio.h> #include <stdlib.h> int main(void) { puts("それは" "そうかも" "しれないね"); return 0; } $ clang string.c && ./a.out それはそうかもしれないね
date: 2018-09-18T16:06:59+09:00
creator: zunda ? nはおまけ :green_dango:
has creator: acct
licence: https://creativecommons.org/licenses/by/3.0/
has discussion: https://social.senooken.jp/conversation/442381
tagged: concept

https://mastodon.zunda.ninja/users/zundan/statuses/100745439921474837
type: item
type: MicroblogPost
title: zundan@mastodon.zunda.ninja: うーん、やっぱり整数のみの気のする$ cat main.c #include <stdio.h> #include <stdlib.h>int main(void) { printf("010: %d\n", 010); printf("00000.1: %f\n", 00000.1); return 0; } $ clang main.c && ./a.out 010: 8 00000.1: 0.100000
link: https://social.senooken.jp/notice/635130
description: zundan@mastodon.zunda.ninja's status on Tuesday, 18-Sep-2018 15:50:17 JST
encoded: うーん、やっぱり整数のみの気のする $ cat main.c #include <stdio.h> #include <stdlib.h> int main(void) { printf("010: %d\n", 010); printf("00000.1: %f\n", 00000.1); return 0; } $ clang main.c && ./a.out 010: 8 00000.1: 0.100000
date: 2018-09-18T15:50:17+09:00
creator: zunda ? nはおまけ :green_dango:
has creator: acct
licence: https://creativecommons.org/licenses/by/3.0/
has discussion: https://social.senooken.jp/conversation/442264
tagged: concept

kkamiyama: @kiki #include <stdio.h> void jp_kimoi() { printf("jpキモいよぉ…\n"); jp_kimoi(); } int main() { jp_kimoi(); }
type: item
type: MicroblogPost
link: https://social.senooken.jp/notice/604384
description: kkamiyama's status on Sunday, 16-Sep-2018 10:15:16 JST
encoded: @kiki #include <stdio.h> void jp_kimoi() { printf("jpキモいよぉ…\n"); jp_kimoi(); } int main() { jp_kimoi(); }
date: 2018-09-16T10:15:16+09:00
creator: ?
has creator: acct
licence: https://creativecommons.org/licenses/by/3.0/
has discussion: https://social.senooken.jp/conversation/420869
tagged: concept

yumetodo: はろーやーやーみなさん と迷ったけど、ここはいつものありきたりなほうで行ってみた。```cpp #include <iostream> int main() { std::cout << "arikitari_na_sekai" << std::endl; } ```
type: item
type: MicroblogPost
link: https://social.senooken.jp/notice/309119
description: yumetodo's status on Tuesday, 28-Aug-2018 17:55:23 JST
encoded: はろーやーやーみなさん と迷ったけど、ここはいつものありきたりなほうで行ってみた。 ```cpp #include <iostream> int main() { std::cout << "arikitari_na_sekai" << std::endl; } ```
date: 2018-08-28T17:55:23+09:00
creator: yumetodo
has creator: acct
licence: https://creativecommons.org/licenses/by/3.0/
has discussion: https://social.senooken.jp/conversation/216165
tagged: concept

sh@gamelinks007.net: #include <iostream>int main(){ std::cout << "Hello C++"; return 0; }これが
type: item
type: MicroblogPost
link: https://social.senooken.jp/notice/139871
description: sh@gamelinks007.net's status on Saturday, 18-Aug-2018 18:20:40 JST
encoded: #include <iostream> int main(){ std::cout << "Hello C++"; return 0; } これが
date: 2018-08-18T18:20:40+09:00
creator: S.H.
has creator: acct
licence: https://creativecommons.org/licenses/by/3.0/
has discussion: https://social.senooken.jp/conversation/100979
tagged: concept

objectType=note
type: item
type: MicroblogPost
title: senooken: ああ。ちょっと違うけどうまくいった。 ポイントはこれ。キャストして間接参照。 printf("found: %d\n", *(int *)entry); // ここが@になる /////////////////////////////////////////////////////////////////////////////// /// \file find_array.c /// \author SENOO, Ken /////////////////////////////////////////////////////////////////////////////// #include <stdio.h> #include <search.h> #include <string.h> int main(void) { // char *tab[] = { // "auto", // "break" // }; int tab[] = {1, 2, 3}; size_t nel = sizeof(tab)/sizeof(tab[0]); // char *target = "break"; // char *entry = lfind(&target, tab, &nel, sizeof(tab[0]), (int (*)(const void *, const void*))strcmp); // void *entry = lfind(&(void *){"break"}, tab, &nel, sizeof(tab[0]), (int (*)(const void *, const void*))strcmp); void *entry = lfind(&(int){2}, tab, &nel, sizeof(tab[0]), (int (*)(const void *, const void*))strcmp); if (entry) { printf("found: %p\n", (void *)tab); printf("found: entry:%p\n", entry); printf("found: %d:%p\n", tab[1], (void *)&tab[1]); printf("found: %d\n", *(int *)entry); // ここが@になる } else { puts("NOT FOUND"); } return 0; }
link: https://social.senooken.jp/notice/29110
description: senooken's status on Monday, 02-Jul-2018 20:45:11 JST
encoded: ああ。ちょっと違うけどうまくいった。 ポイントはこれ。キャストして間接参照。 printf("found: %d\n", *(int *)entry); // ここが@になる /////////////////////////////////////////////////////////////////////////////// /// \file find_array.c /// \author SENOO, Ken /////////////////////////////////////////////////////////////////////////////// #include <stdio.h> #include <search.h> #include <string.h> int main(void) { // char *tab[] = { // "auto", // "break" // }; int tab[] = {1, 2, 3}; size_t nel = sizeof(tab)/sizeof(tab[0]); // char *target = "break"; // char *entry = lfind(&target, tab, &nel, sizeof(tab[0]), (int (*)(const void *, const void*))strcmp); // void *entry = lfind(&(void *){"break"}, tab, &nel, sizeof(tab[0]), (int (*)(const void *, const void*))strcmp); void *entry = lfind(&(int){2}, tab, &nel, sizeof(tab[0]), (int (*)(const void *, const void*))strcmp); if (entry) { printf("found: %p\n", (void *)tab); printf("found: entry:%p\n", entry); printf("found: %d:%p\n", tab[1], (void *)&tab[1]); printf("found: %d\n", *(int *)entry); // ここが@になる } else { puts("NOT FOUND"); } return 0; }
date: 2018-07-02T20:45:11+09:00
creator: せのお (妹尾 賢)
maker: せのお (妹尾 賢)
has creator: acct
licence: https://creativecommons.org/licenses/by/3.0/
reply of: https://social.senooken.jp/notice/29096
has discussion: https://social.senooken.jp/conversation/21602
tagged: concept

objectType=note
type: item
type: MicroblogPost
title: senooken: わからない。なぜ，これで@が表示されるんだ？ /////////////////////////////////////////////////////////////////////////////// /// \file find_array.c /// \author SENOO, Ken /////////////////////////////////////////////////////////////////////////////// #include <stdio.h> #include <search.h> #include <string.h> int main(void) { char *tab[] = { "auto", "break" }; size_t nel = sizeof(tab)/sizeof(tab[0]); // char *target = "break"; // char *entry = lfind(&target, tab, &nel, sizeof(tab[0]), (int (*)(const void *, const void*))strcmp); void *entry = lfind(&(void *){"break"}, tab, &nel, sizeof(tab[0]), (int (*)(const void *, const void*))strcmp); if (entry) { printf("found: %p\n", (void *)tab); printf("found: entry:%p\n", entry); printf("found: %s:%p\n", tab[1], (void *)&tab[1]); printf("found: %s\n", (char *)entry); // ここが@になる } else { puts("NOT FOUND"); } return 0; }
link: https://social.senooken.jp/notice/29096
description: senooken's status on Monday, 02-Jul-2018 20:37:09 JST
encoded: わからない。なぜ，これで@が表示されるんだ？ /////////////////////////////////////////////////////////////////////////////// /// \file find_array.c /// \author SENOO, Ken /////////////////////////////////////////////////////////////////////////////// #include <stdio.h> #include <search.h> #include <string.h> int main(void) { char *tab[] = { "auto", "break" }; size_t nel = sizeof(tab)/sizeof(tab[0]); // char *target = "break"; // char *entry = lfind(&target, tab, &nel, sizeof(tab[0]), (int (*)(const void *, const void*))strcmp); void *entry = lfind(&(void *){"break"}, tab, &nel, sizeof(tab[0]), (int (*)(const void *, const void*))strcmp); if (entry) { printf("found: %p\n", (void *)tab); printf("found: entry:%p\n", entry); printf("found: %s:%p\n", tab[1], (void *)&tab[1]); printf("found: %s\n", (char *)entry); // ここが@になる } else { puts("NOT FOUND"); } return 0; }
date: 2018-07-02T20:37:09+09:00
creator: せのお (妹尾 賢)
maker: せのお (妹尾 賢)
has creator: acct
licence: https://creativecommons.org/licenses/by/3.0/
has discussion: https://social.senooken.jp/conversation/21602
tagged: concept

objectType=note
type: item
type: MicroblogPost
title: senooken: こんな感じでかなりいいところまでいけている。だけど，lfindで取得したものはポインターなんだけど，ここにマッチした文字列がうまくとれない。アドレスが入っているなら*で取れるかと思ったけどだめ。検索のキーで参照自体はできるのだけど。もどかしい。 /////////////////////////////////////////////////////////////////////////////// /// \file find_array.c /// \author SENOO, Ken /////////////////////////////////////////////////////////////////////////////// #include <stdio.h> #include <search.h> #include <string.h> int main(void) { static const char *tab[] = { "auto", "break" }; size_t nel = sizeof(tab)/sizeof(tab[0]); // char *target = "break"; // char *entry = lfind(&target, tab, &nel, sizeof(tab[0]), (int (*)(const void *, const void*))strcmp); char *entry = lfind(&(void *){"break"}, tab, &nel, sizeof(tab[0]), (int (*)(const void *, const void*))strcmp); if (entry) { printf("found: %s\n", "break"); } else { puts("NOT FOUND"); } return 0; }
link: https://social.senooken.jp/notice/10685
description: senooken's status on Saturday, 23-Jun-2018 02:38:17 JST
encoded: こんな感じでかなりいいところまでいけている。だけど，lfindで取得したものはポインターなんだけど，ここにマッチした文字列がうまくとれない。アドレスが入っているなら*で取れるかと思ったけどだめ。検索のキーで参照自体はできるのだけど。もどかしい。 /////////////////////////////////////////////////////////////////////////////// /// \file find_array.c /// \author SENOO, Ken /////////////////////////////////////////////////////////////////////////////// #include <stdio.h> #include <search.h> #include <string.h> int main(void) { static const char *tab[] = { "auto", "break" }; size_t nel = sizeof(tab)/sizeof(tab[0]); // char *target = "break"; // char *entry = lfind(&target, tab, &nel, sizeof(tab[0]), (int (*)(const void *, const void*))strcmp); char *entry = lfind(&(void *){"break"}, tab, &nel, sizeof(tab[0]), (int (*)(const void *, const void*))strcmp); if (entry) { printf("found: %s\n", "break"); } else { puts("NOT FOUND"); } return 0; }
date: 2018-06-23T02:38:17+09:00
creator: せのお (妹尾 賢)
maker: せのお (妹尾 賢)
has creator: acct
licence: https://creativecommons.org/licenses/by/3.0/
reply of: https://social.senooken.jp/notice/10526
has discussion: https://social.senooken.jp/conversation/7536
tagged: concept

S.H.
type: Agent
holds account: acct

せのお (妹尾 賢)
type: Agent
nick: senooken
holds account: acct