Giriş
errno değişkenine atanan hat kodunu stderr akımına metin olarak yazar.
Orientation
Açıklaması şöyle
Şöyle yaparız.
Şöyle yaparız.
Şöyle yaparız.
errno değişkenine atanan hat kodunu stderr akımına metin olarak yazar.
Orientation
Açıklaması şöyle
Wide-orientedThe perror() function shall not change the orientation of the standard error stream.
Şöyle yaparız.
#include <stdio.h>
#include <wchar.h>
#include <errno.h>
int main(void)
{
  fwide(stderr, 1);
  errno = EINVAL;
  perror("");
  int x = fwide(stderr, 0);
  printf("fwide: %d\n",x);
  return 0;
}Şöyle yaparız.
#include <stdio.h>
#include <wchar.h>
#include <errno.h>
int main(void)
{
  fwide(stderr, -1);
  errno = EINVAL;
  perror("");
  int x = fwide(stderr, 0);
  printf("fwide: %d\n",x);
  return 0;
}Şöyle yaparız.
#include <stdio.h>
#include <wchar.h>
#include <errno.h>
int main(void)
{
  printf("initial fwide: %d\n", fwide(stderr, 0));
  errno = EINVAL;
  perror("");
  int x = fwide(stderr, 0);
  printf("fwide: %d\n", x);
  return 0;
} 
 
Hiç yorum yok:
Yorum Gönder