Questions tagged [stat]

The stat(2) system call on POSIX systems. For statistics, use the statistics instead.

The stat(2) system call is used to retrieve information about a named file (or directory).

Links:

For statistics, use the tag instead.

829 questions
-3
votes
1 answer

C - stat struct not working properly

I am trying to printf some characteristics of the files inside a directory (only the ones that start with lowercase). However, when I execute the following code, some of them work and some don't. It looks like the stat struct may not be working…
-3
votes
1 answer

following sequence of A-B-C-D-E-F. How to proceed using R

I have 1 data frame, I want to to go from A to F by following sequence of A-B-C-D-E-F. How to proceed using R. > m V1 V2 V3 1 A B 0.1 2 B C 0.2 3 C D 0.3 4 D E 0.2 5 E F 0.5
-3
votes
3 answers

how to determine if two file are identical in c using system call

i need to see if 2 files are identical so i used struct stat fdin = open(argv[0],O_RDONLY); statos= fstat(fdin, &stat); close(fdin); fdin = open(argv[1],O_RDONLY); statos1= fstat(fdin, &stat1); close(fdin); printf("file…
Moshe Ovadia
  • 21
  • 1
  • 4
-3
votes
1 answer

Subset binary matrix

I have this binary martix a0=rep(1,40) a=rep(0:1,20) b=c(rep(1,20),rep(0,20)) c0=c(rep(0,12),rep(1,28)) c1=c(rep(1,5),rep(0,35)) c2=c(rep(1,8),rep(0,32)) c3=c(rep(1,23),rep(0,17)) da=matrix(cbind(a0,a,b,c0,c1,c2,c3),nrow=40,ncol=7) I need to…
Falcon-StatGuy
  • 347
  • 2
  • 6
  • 15
1 2 3
55
56