*((char*)mempcpy(dst, src, min(len, dstsize-1))) = 0;
can be replace by ((char*)memcpy(dst, src, min(len, dstsize-1))[min(len, dstsize-1)] = 0;
if you don't have mempcpy44 karma · joined June 27, 2017
*((char*)mempcpy(dst, src, min(len, dstsize-1))) = 0;
can be replace by ((char*)memcpy(dst, src, min(len, dstsize-1))[min(len, dstsize-1)] = 0;
if you don't have mempcpy size_t strlcpy(char *dst, const char *src, size_t dstsize)
{
size_t len = strlen(src);
if(dstsize)
*((char*)mempcpy(dst, src, min(len, dstsize-1))) = 0;
return len;
} char buffer[2000];
strcpy(buffer, "hello", sizeof buffer);
writes "hello" and 1995 0 to the buffer.You see now how absurd that argument is?
I just checked the size of the clang-10 binary that was built. It is fucking 1.9 GB big (gcc 9.2 on the same machine is 6.1 MB).
Here the list of traits that could be observed in the private complain thread:
- Grandiosity with expectations of superior treatment from other people - Fixated on fantasies of power, success, intelligence, attractiveness, etc. - Self-perception of being unique, superior, and associated with high-status people and institutions - Needing continual admiration from others - Sense of entitlement to special treatment and to obedience from others - Exploitative of others to achieve personal gain - Unwilling to empathize with the feelings, wishes, and needs of other people - Intensely envious of others, and the belief that others are equally envious of them - Pompous and arrogant demeanor
This was IMHO the worst restriction of that BASIC.
The only feature on the plus side of that BASIC was that it used the BCD floating format they also used in their calculator. So 13 digits precision with numeric range of 10^-99 to 10^99. When I switched later to the Apple II, I was shocked at the ridicule binary floating point format that couldn't even add 2 simple numbers correctly :-)
The TI-EXTENDED BASIC was an absolute must if you wanted to do serious programming. It enabled the sprites, had fancy stuff like named subroutines (that could even be called recursively) and a lot of restriction of the original BASIC were lifted.
It's probably the strangest machine (aka f..d up) of the home computer era.