Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Extern or extrn in B?

Tags:

extern

b-lang

I have a confusion between two B keywords.

The official B reference manual uses extrn keyword, while Wikipedia and C use extern.

As I don't know any good B compiler for x86, I can't spellcheck using a compiler.

So, what's the correct way of writing extern keyword in B - extern or extrn?

like image 920
Triang3l Avatar asked Nov 16 '25 13:11

Triang3l


1 Answers

I'm no B programmer, but I would say extrn is right.

Sources: here and here. Source 1 even explicitly states:

What’s different compared to C?

  • extrn keyword instead of extern keyword.
like image 82
Oldskool Avatar answered Nov 18 '25 18:11

Oldskool



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!