Бабушка, смотри, я сделал двач! Войти !bnw Сегодня Клубы
Привет, TbI — HRWKA! 1244.0 пользователей не могут ошибаться!
?6962
прекрасное6450
говно5915
говнорашка5512
хуита4734
anime3072
linux2659
music2639
bnw2607
рашка2582
log2369
ололо2228
дунч1868
pic1816
сталирасты1493
быдло1440
украина1439
bnw_ppl1431
дыбр1239
гімно1158

c
http://www.sys-con.com/node/2302835 C11: A New C Standard Aiming at Safer Programming
#TI0TJQ (1+2) / @octagram / 4754 дня назад
Очень вкучный разбор кода двига doom3 http://fabiensanglard.net/doom3/index.php
#AZLJ5I (0+2) / @ninesigns / 4772 дня назад
Где можно украсть реализацию BCH(15,11) для x⁴ + x + 1 на цэ? Инбифо linux: там толстый страшный ужас.
#U2TYRJ (0) / @l29ah / 4776 дней назад
Увидел на ЛОРе высказывание, что никто давно не использует UNIX IPC. А что используют???
#QK2QN1 (4+1) / @ninesigns / 4807 дней назад
Посоны, посоветуйте говно для генерации сериализаторов/десериализаторов произвольного бинарного формата пакета на цэ, а? Нужно штоб умело не привязанные к октетам битфилды, в частности.
#2331H8 (2+1) / @l29ah / 4823 дня назад
Это ок ставить __attribute__ ((weak)) на заглушки, которые будут оверлоаднуты не-заглушками?
#X9FZVU (1) / @lexszero / 4846 дней назад
c
Чят, смотри. В прыщеведре есть волшебная макра, по адресу члена структуры, ее типу и названию мембера возвращающая адрес самой структуры: / * container_of - cast a member of a structure out to the containing structure * @ptr: the pointer to the member. * @type: the type of the container struct this is embedded in. * @member: the name of the member within the struct. * */ #define container_of(ptr, type, member) ({ \ const typeof( ((type *)0)->member ) *__mptr = (ptr); \ (type *)( (char *)__mptr - offsetof(type,member) );}) Я написал то же самое так: #define container_of(ptr, type, member) \ (type *)((char *)ptr - (char *)&(((type *)0)->member)) И вроде бы УМВР. Вопрос: зачем в прыщеведре лишние костыли?
#E893WL (11+1) / @lexszero / 4873 дня назад
c ?
__attribute__ ((__packed__)) гарантирует-ли мне, что если я буду эту структурку писать и читать в сеть, то при использовании только фиксированных типов c99 и битовых полей у меня всё прочитается корректно, и мне нужно будет трахаться только с endianness?
#1AMB39 (0) / @l29ah / 4892 дня назад
Program received signal SIGABRT, Aborted. ResetISR () at ../config/freertos_cr_startup_lpc11.c:216 216 { (gdb) next Program received signal SIGABRT, Aborted. ResetISR () at ../config/freertos_cr_startup_lpc11.c:216 216 { (gdb) next Program received signal SIGABRT, Aborted. ResetISR () at ../config/freertos_cr_startup_lpc11.c:216 216 { (gdb) ШОЭТА?
#UDVPRI (0) / @l29ah / 4906 дней назад
Почему, когда я делаю setenv, у меня в /proc/shit/environ таки ничего не меняется?
#2W8WG1 (3) / @l29ah / 4940 дней назад
http://udel.edu/~mm/xmas/xmas.c Ничо так получилось. Но на пёрле такие фишки всё равно веселее выглядят.
#CM3U0F (0+1) / @goren / 5038 дней назад
‰ gdb ./a.out GNU gdb (Gentoo 7.2 p1) 7.2 Copyright (C) 2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-pc-linux-gnu". For bug reporting instructions, please see: <http://bugs.gentoo.org/>... Reading symbols from /tmp/a.out...done. (gdb) break main Breakpoint 1 at 0x4005dc: file a.c, line 6. (gdb) run Starting program: /tmp/a.out Breakpoint 1, main () at a.c:6 6 char *a = malloc(10000000); (gdb) call setbuf(stdout, 0) Program received signal SIGSEGV, Segmentation fault. 0x00007ffff7ab9096 in setbuffer () from /lib64/libc.so.6 The program being debugged was signaled while in a function called from GDB. GDB remains in the frame where the signal was received. To change this behavior use "set unwindonsignal on". Evaluation of the expression containing the function (setbuf) will be abandoned. When the function is done executing, GDB will silently stop. ЧЯДНТ?
#FMKF2A (2+1) / @l29ah / 5061 день назад
#include <stdio.h> struct p1 { char a1; int a2; char a3; int a4; }; struct p2 { char a1; char a3; int a2; int a4; }; int main() { printf("%d %d\n", sizeof(struct p1), sizeof(struct p2)); return 0; } $ ./a.out 16 12 $
#31QUHY (7) / @hate-engine / 5074 дня назад
c
Решил с C поближе познакомиться. Оказывается тут не все так скучно, как казалось. Вот, обобщенное программирование, например http://attractivechaos.wordpress.com/200.....ming-in-c/ http://attractivechaos.wordpress.com/200.....rary-in-c/
#PX12N2 (1) / @yk / 5206 дней назад
[~/Code/test/ANSI C/] % cat sin.c #include <stdio.h> #include <math.h> int main() { double d = 43998769152.000000; printf("%16le\n",sin(d)); printf("%16le\n",sin(43998769152.000000)); } [~/Code/test/ANSI C/] % gcc -o sin sin.c -lm;./sin -4.081937e-09 -4.025292e-09
#QXSZ1P (0) / @nya / 5255 дней назад
Сишкоблядуйк, скажи, что делает эта поебень? devc->hw_channels = devc->hw_channels = oss_audio_set_channels (devc->hw_dev, devc->hw_channels); и нет, это не опечатка
#G1UH98 (6) / @stiletto / 5315 дней назад
ipv6 ready BnW для ведрофона BnW на Реформале Викивач Котятки

Цоперайт © 2010-2016 @stiletto.