I was looking at the source for weston, the wayland reference implementation, and I saw this line that confused me (https://github.com/wayland-project/weston/blob/master/desktop-shell/shell.c line 230)
return snprintf(buf, len, "%s window%s%s%s%s%s",
"top-level",
t ? " '" : "", t ?: "", t ? "'" : "",
c ? " of " : "", c ?: "");
What does t ?: ""
mean? I've never seen an operator like this before, in C at least. It looks like it means "if t is not null then t else (elseclause)" but I didn't know C had that operator.