Some minor clarification, see below ...

HTH, kind regards

Bernd


Am 05.01.2022 um 18:56 schrieb Bob Bridges:
I guess you're saying below that socket calls are built into the C language, or 
more likely are part of a standard library of C functions.  I once bought a C 
compiler, but was dismayed by the amount of code that has to go into every 
program just to get started.  (I'm prejudiced by the simplicity of REXX and 
PL/1, and dislike all the verbiage that's necessary even to start a COBOL 
program.)  So I dropped the matter and never got further.  No doubt I'll get 
back to C eventually.

C is a very simple language, and you need almost no verbose code to get started. (Same as Pascal, BTW). See the very simple "Hello world" example programs, which only take one line of source code, like this:

int main (void); { printf ("hello world\n"); }

Ok ... you should probably add some standard headers like

#include <stdio.h>
#include <stdlib.h>

(which contain the definition of printf etc.), but that's it.

Don't mix up C with C++, which is a complete different language

Meanwhile, is there a OO class (for example) that can interact with 
object-oriented languages such as VBS, Jscript, ooREXX etc?  Or is it time for 
me to buy a C compiler (again).  Or maybe VB Studio, or whatever it's called?


C has nothing to do with OO ... C++ is the OO language.
C is a language for systems programming or embedded systems,
only sometimes used for commercial or math applications.

The C socket interface is very low level, but easy to use and easy to understand.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to