forum.wfido.ru

forum.wfido.ru (http://forum.wfido.ru/index.php)
-   RU.COMPUTER.HUMOR (http://forum.wfido.ru/forumdisplay.php?f=65)
-   -   По-русски они ни бельмеса, по-английски тоже не поняли... (http://forum.wfido.ru/showthread.php?t=84057)

Alexey Vissarionov 24.08.2019 20:22

По-русски они ни бельмеса, по-английски тоже не поняли...
 
Alexey Vissarionov написал(а) к All в Aug 19 19:11:00 по местному времени:

Доброго времени суток, All!

... пришлось на C написать:

* Обнаружено в FTSC
* От: Alexey Vissarionov (2:5020/545), 22 Aug 2019 07:50:00
* Для: Andrew Leary
* Про: Max subject length: 71 or 72 chars?
Good ${greeting_time}, Andrew!

19 Aug 2019 02:30:10, you wrote to All:

[...]

AL> It seems wasteful to have critical bytes in a packet header that are
AL> [i]always[/i] zero, so if we could agree that byte 71 (couting from 0) of
AL> a subject and byte 35 (again, counting from 0) of to/from names are
AL> [i]usable[/i], that would make these message/packet formats a little more
AL> sane.

#define SUBJ_SIZE 72

uint8[b]t subject[SUBJ[/b]SIZE];
extern void* somewhere;

memset(subject, 0x00, SUBJ_SIZE);
strlcpy(subject, somewhere, SUBJ_SIZE);

[...]

... god@universe:~ # cvs up && make world
[b]_[/b] /bin/vi
+ Origin: [url]http://openwall.com/Owl[/url] (2:5020/545)

Вроде осознали...


--
Alexey V. Vissarionov aka Gremlin from Kremlin
gremlin ПРИ gremlin ТЧК ru; +vii-cmiii-ccxxix-lxxix-xlii

... Пока теоретики рисуют карты, практики меняют ландшафты
--- /bin/vi


Текущее время: 17:29. Часовой пояс GMT +4.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc. Перевод: zCarot