( geza42 | 2020. 10. 21., sze – 16:19 )

Még régebbi, épp hogy kimaradt a K&R-ből: http://cm.bell-labs.co/who/dmr/cchanges.pdf. 1978, 42 éve.

Előkaptam egy PDP-11 emulátort, Unix V7-tel, 1978-ból:

# Restricted rights: Use, duplication, or disclosure
is subject to restrictions stated in your contract with
Western Electric Company, Inc.
Thu Sep 22 05:49:30 EDT 1988

login: dmr
$ ls -l /
total 643
drwxrwxr-x 2 bin      2512 Sep 22 05:32 bin
-rwxr-xr-x 1 bin      8986 Jun  8  1979 boot
drwxrwxr-x 2 bin       160 Sep 22 05:47 dev
drwxrwxr-x 2 bin       336 Sep 22 05:49 etc
-rwxr-xr-x 1 sys     53302 Jun  8  1979 hphtunix
-rwxr-xr-x 1 sys     52850 Jun  8  1979 hptmunix
drwxrwxr-x 2 bin       320 Sep 22 05:33 lib
drwxrwxr-x 2 root       96 Sep 22 05:46 mdec
-rwxr-xr-x 1 root    50990 Jun  8  1979 rkunix
-rwxr-xr-x 1 root    51982 Jun  8  1979 rl2unix
-rwxr-xr-x 1 sys     51790 Jun  8  1979 rphtunix
-rwxr-xr-x 1 sys     51274 Jun  8  1979 rptmunix
drwxrwxrwx 2 root       32 Sep 22 05:48 tmp
drwxrwxr-x12 root      192 Sep 22 05:48 usr

$ cat t.c
struct Foo {
  int x;
};

main() {
  struct Foo a;
  struct Foo b;
  a.x = 42;
  b = a;
  printf("answer: %d\n", b.x);
}
$ pcc t.c
t.c
$ ./a.out
answer: 42

Szóval valóban tudta a struct értékadást.