Questions tagged [standards]
Standards are officially published or well agreed upon formats, procedures, or protocols. Use this tag for questions about a specific standard, or about a standardization process. DO NOT use this tag for questions about programming language technicalities or design just because the language has a standard. Use [language-lawyer] or [language-design].
standards
3,380
questions
-1
votes
0
answers
51
views
C++ syntax explanation in Microsoft WIL library [duplicate]
I saw such code snippet in
...\packages\Microsoft.Windows.ImplementationLibrary.1.0.240122.1\include\wil\result.h
if (auto pNewRaw = details::ProcessHeapAlloc(0, sizeof(Node)))
{
...
0
votes
1
answer
35
views
Is there a standard convention for converting YAML to XML and vice-versa?
I am interested to understand if there is a standard convention (e.g. W3C standard) for converting XML data to YAML and vice-versa. I immagine that there are structures in XML that can be hardly ...
0
votes
1
answer
112
views
What is the portable way to cast to-and-from a `char`, preserving the same bit pattern?
Many methods take char to be the 'byte type' 1. However, it is unclear (to me) whether it is implementation defined behaviour what a cast from an unsigned char to a char ought to do when the unsigned ...
6
votes
2
answers
162
views
Is a non-constant zero integer cast to `void *` still a null pointer?
The expresssion (void *)0 is called a null pointer.
But how about the following:
int i = 0;
void *s = (void *)i;
Is s also a null-pointer? The C-language standard says:
6.3.2.3 Pointers
3 An integer ...
0
votes
0
answers
22
views
Can an analyzer send Rejected results via LIS interface
I am developing a link between our LIMS and a medical biochemical analyzer that has LIS protocol supported.
For various reasons we would like all of the results to be channeled to the system, also the ...
3
votes
4
answers
195
views
What in the C standard allows compilers to optimize `(((char *)p - 1) == NULL` to false?
Take the following snippet:
#include <stddef.h>
_Bool
foo(char * p) {
return (p - 1) == NULL;
}
Both GCC and LLVM optimize the result to false.
What in the standard allows the compilers to ...
3
votes
1
answer
135
views
In the C++ standard why is getenv defined but not setenv?
Can't seem to find the definition of setenv or something similar in the standard.
whereas getenv seems to be there and is available portably in both windows and posix standard libraries.
In short is ...
1
vote
0
answers
69
views
Do surrogate pairs in JSON really have two interpretations?
The official JSON standard (ECMA-404, 2e, 2017-Dec) states the following about Unicode surrogate pairs:
However, whether a processor of JSON texts interprets such a surrogate pair as a single code ...
0
votes
0
answers
72
views
How to return warnings from a REST API
For errors we have RFC9457 which defines Problem Details.
But what to use in case of a non fatal warning?
Example:
The client called GET /toast?color=charcoal
The server is able to handle that request ...
0
votes
2
answers
52
views
What is the best way to define a constant with a WebComponent? [closed]
Update: I added more details of how I'm using the constants in response to questions. The actual problem I'm observing is that the constants are added to the global object, and so I'm worried about ...
0
votes
0
answers
13
views
In input process output is it still the input stage if i need a logic to get the data first?
For example, if I have a list of orders coming in the request, and if an order have a list of items, and if i need to merge items, summing their value, for orders with the same id, if i do this stage ...
0
votes
0
answers
54
views
Calculate standard deviation within a certain range in excel
I first checked the answers this question:
Is there a way to calculate standard deviation on a range of cells only for cells where the value is greater than 0 in Excel?
I tried to use this info for a ...
1
vote
1
answer
78
views
Standard Pascal 7185 silent on reading strings from textfiles
In the ISO/IEC 7185:1990(E) Standard Pascal specification, in Clause 6.9.1 for the procedure read, subsection "a)" reads as follows:
a) For n>=1, read(f,v1,...,vn) shall access the ...
0
votes
1
answer
108
views
Does the qsort() function provide performance guarantees?
Does the C standard require the standard-library qsort() function provide a specific level of performance? The name suggests the use of an O(n log n) algorithm such as quicksort. Could a standards-...
1
vote
1
answer
173
views
Are all Oracle alert log errors 5 Digits long?
Is there ever an error in the alert log where the Error numbers would be less than 5?
On a legacy list of ORA- ignoreable errors, Some are 2, 3, 4, and 5 numbers.
Ignore Error List
ORA-3206
ORA-3297
...