Welcome, Guest. Please login or register.

Author Topic: Executing c command in c  (Read 10491 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Thorham

  • Hero Member
  • *****
  • Join Date: Oct 2009
  • Posts: 1150
    • Show all replies
Re: Executing c command in c
« on: June 02, 2017, 01:16:11 PM »
Quote from: Thomas Richter;826432
Unfortunately, strlcpy() is not an ANSI-C function but a compiler extension some compilers provide
Why not implement simple things like that yourself? I usually don't bother with using the C runtime for strings at all. It bloats the executable for a few functions that are all a few lines of C. Furthermore, your own functions can be tailored to your exact needs.

Quote from: Thomas Richter;826549
C is a very low-level language.
I would call it a mid level language. Too high level compared to assembly language, and too low level compared to things like C#. Pointers != very low level ;)
« Last Edit: June 02, 2017, 01:23:03 PM by Thorham »
 

Offline Thorham

  • Hero Member
  • *****
  • Join Date: Oct 2009
  • Posts: 1150
    • Show all replies
Re: Executing c command in c
« Reply #1 on: June 02, 2017, 01:22:22 PM »
Quote from: Thomas Richter;826432
Unfortunately, strlcpy() is not an ANSI-C function but a compiler extension some compilers provide

Why not implement simple things like that yourself? I usually don't bother with using the C runtime for strings at all. It bloats the executable for a few functions that are all a few lines of C. Furthermore, your own functions can be tailored to your exact needs.