/*
- Copyright (C) 2010-2011 wpitchoune@gmail.com
+ Copyright (C) 2010-2011 jeanfi@gmail.com
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
#include <stdlib.h>
#include <stdio.h>
+#include <string.h>
+
#include "measure.h"
struct measure *measures_create(int size)
void measure_copy(struct measure *src, struct measure *dst)
{
- dst->time = src->time;
- dst->value = src->value;
+ memcpy(dst, src, sizeof(struct measure));
}